Sean P. DeNigris wrote
>
> For /private/var, <primitive: 'primitiveDirectoryLookup' module:
> 'FilePlugin'> returns false for the dir flag... still investigating...
>
sqSqueakOSXFileDirectoryInterface-resolvedAliasFiles: calls
stringByStandardizingPath on the filePath, which the manual [1] states may
"Remove an initial component of “/private” from the path if the result still
indicates an existing file or directory (checked by consulting the file
system).".
This returns /var for /private/var, which is a symlink.
Removing the call returns the correct value (true) for "". Also, all
Tests-Files and Filesystem-Tests pass in 1.4.
The changed snippet is (I also fixed the misspelled variable "compoents" to
"components"):
- (NSString *)resolvedAliasFiles:(NSString *)filePath {
NSArray *components = [filePath pathComponents]; // removed
stringByStandardizingPath call
NSString *thisComponent;
NSString *path = [[NSString new] autorelease];
for (thisComponent in components) {
[1]
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/stringByStandardizingPath
--
View this message in context:
http://forum.world.st/Confused-about-isDirectory-tp4589441p4590343.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.