File scavenger version 5 logo3/18/2024 ![]() ![]() ![]() %% but this is right: "C:/Program Files/SomeDirectory" %% after the exact directory.e.g this is wrong: "C:/Program Files/SomeDirectory/" %% Must be containing forward slashes, not back slashes. I'll give an example of each quickly here using a list of files returned from file:list_dir/1: ])).Įrror_logger:error_report([" * File Scavenger Utilities Error * ", The big question comes down to this: What do you want to do with the files? Do you want to total something up for the files (ie, total file size or something), or do you want to store some value for each file (ie each file size individually) or do you want to do something to the files and you don't care what the return values for those files are (ie renaming each file)? There are two main ways one iterates over a list of something in a functional language like Erlang: map and fold. It's tough to recommend exactly which method you should use because your "do something" pseudocode is too vague.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |