FileDirectory question- How do you move a file/folder?
Ned Konz
ned at bike-nomad.com
Sat May 17 00:38:55 UTC 2003
On Friday 16 May 2003 04:34 pm, Anthony Adachi wrote:
> > And what happens when you try to move a file to a file system
with different naming rules?
>
> I don't know and I'm not sure why that's relevant?
Well, what if you have a file on your local drive whose name is:
/Users/Me/some\Oddly:NamedFile
which is a legal name in the local file system.
Now you want to move this to a Windows SMB share, which allows neither
backslashes nor colons in its filenames. Something's got to change.
Or perhaps you have too many or too few characters on one of the
systems.
In this case you can't necessarily move a file from A to B and back to
A and expect it to have the same name.
I'd hoped that the rename would do a full move, apparently not.
You could also look at the OSProcess plugin (though I don't know if
it's working yet on OS/X); it has some OS hooks that might be more
helpful.
Tim's right about the need to clean this stuff up. File handling (and
file directory/name manipulation especially) is a mess in Squeak.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|