[Vm-dev] Extending primitiveDirectoryEntry
Alistair Grant
akgrant0710 at gmail.com
Fri Apr 21 08:32:49 UTC 2017
Hi All,
I'm in the process of making FileReference>>moveTo: work across devices.
To make the implementation a bit cleaner on Linux it would be nice to
know whether the source and destination reside on the same disk
filesystem. This can be determined by comparing stat.st_dev for the
source file and destination directory.
dir_EntryLookup() in sqUnixFile.c is exposed as primitiveDirectoryEntry
and used by FilePluginPrims>>lookupDirectory:filename:
It basically does a stat() on the supplied file and returns most of the
resulting information. Unfortunately st_dev isn't returned.
Would there be any objection to me extending the Pharo version of
dir_EntryLookup() to include st_dev?
Thanks,
Alistair
More information about the Vm-dev
mailing list