Hi Frederic, thank you for your work.
One detail though:
- rdir does not list directories recursively (it "returns a cell array of file names matching NAME" in the specified directories);
- rdelete does not delete files recursively (it "deletes the named files" as indicated in the file comments);
- rrmdir does not remove directories recursively (it "deletes the named directories" as indicated in the file comments).
If you would be so kind as to correct/clarify the above File Information Description
" rdir - Recursive list directory.
rdelete - Delete files recursively.
rrmdir - Delete directories recursively."
it would not mislead others (as it did me).
For a limited recursive behavior (up to two recursive directories deep) of rdir I tried
AstAstFolders = rdir('\*\*','dironly');
but this only lists the directories, two folders down, it does not list the directories one folder down.
Did I miss anything? This is the intended behavior? Is there a way to actually rdir recursively (all the folders and sub-folders and sub-sub-folders) ?
Cheers, and thank you again anyway
I have a question. Do I miss something or is spaces not supported in the filenames used when for example renaming files? When using strings with spaces I get the "is not a directory"-error.
Otherwise I like your set of functions.
Got a java error:
Exception in thread "Timer-1" java.lang.OutOfMemoryError: Java heap space
at java.lang.String.toLowerCase(Unknown Source)
at java.io.Win32FileSystem.hashCode(Unknown Source)
at java.io.File.hashCode(Unknown Source)
at java.util.HashMap.put(Unknown Source)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
??? Operation terminated by user during ==> renamefile at 68