Comment #1 on issue 4795 by
[hidden email]: rename is not working in
FS
http://code.google.com/p/pharo/issues/detail?id=4795rename: sourcePath ifAbsent: aBlock as: destPath ifPresent: pBlock
"Rename the file referenced as sourcePath to the destination referred as
destPath.
Perform associate actions in case of problems."
| source destination |
source := self resolve: sourcePath.
destination := self resolve: destPath.
self basicRename: source ifAbsent: aBlock as: destination ifPresent: pBlock
So basicRename: ifAbsentL ifPresent: does not exist.
Even though FSFilePluginPrims implements name: oldFileFullName to:
newFileFullName
rename: oldFileFullName to: newFileFullName
"Rename the file of the given name to the new name. Fail if there is no
file of the old name
or if there is an existing file with the new name."
<primitive: 'primitiveFileRename' module: 'FilePlugin'>
^nil
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker