At the moment it is impossible to know if a directory its being moved to child of the same dir.
When i try to move a Directory from the plugin to plugin current FS architecture calls FsMkDir and after FsRenMovFile for each file of the Directory.
FsMkDir should have another argument signaling that the FsMkDir was called because a Directory is being moved. Plugin authors could use that switch to check if the move dir is valid or not. Compatibility with previous plugin is also maintained.
Althought i think the best solution is that TC SHOULD NOT call FsMkDir during a move dir. It should be the responsibility of the plugin developer to create missing directories. I haven't seen a plugin that allows an user to move a directory, so it would remain compatible with all FS plugins.
For complete description of the problem check http://www.ghisler.ch/board/viewtopic.php?t=9678[/url]
[REQ] FileSystem plugin model update
Moderators: Hacker, petermad, Stefan2, white
[REQ] FileSystem plugin model update
______________________
David Jorge
Personal License #117854
David Jorge
Personal License #117854