I may be ignorant of some key principle in the filesystem world, but IMHO
conceptually, `location / somethingElse` should always return either
location or something inside of it, unless the request explicitly requests
otherwise (e.g. location / '..'). To do otherwise could be disastrous.
Behavior #1
rootDataFolder := FileLocator home / 'a' / 'b' / .
subfolderName := self accidentallyReturnAnEmptyString.
assumedToBeInRootData := rootDataFolder / subfolderName.
assumedToBeInRootData deleteAll.
"I hope I have a recent machine backup, because..."
assumedToBeInRootData resolve = FileLocator root resolve. "WTH?!"
Behavior 2 (similar)
Path * 'a' / 'b' / '/' = Path root. "WTH?!"
-----
Cheers,
Sean
--
Sent from:
http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html
Cheers,
Sean