Differences From Artifact [bad8975ada]:
- File
src/OFURLHandler_file.m
— part of check-in
[e6e027971e]
at
2019-04-10 21:22:34
on branch trunk
— Use GetFileAttributesW() to see if a file exists
_wstat64() does not work on drives, so e.g. for C:\ it would always
return that it doesn't exist.Ideally, in the future, all calls to _wstat64() would be replaced with
native calls that return the same information, to avoid any
inconsistencies. At that point, the Amiga re-implementation of of_stat()
could be deprecated as well. (user: js, size: 31158) [annotate] [blame] [check-ins using]
To Artifact [57ac566b12]:
- File
src/OFURLHandler_file.m
— part of check-in
[c52f38388c]
at
2019-04-11 00:34:43
on branch trunk
— Make OFFileManager available with --disable-files
As OFFileManager also works with remote URLs, it makes sense to also
make it available when local files are disabled. In this case, all
path-based methods are unavailable. (user: js, size: 31203) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
688 689 690 691 692 693 694 | else if ([key isEqual: of_file_attribute_key_group]) [self of_setOwner: nil andGroup: object ofItemAtURL: URL attributeKey: key attributes: attributes]; else | | > > | 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 | else if ([key isEqual: of_file_attribute_key_group]) [self of_setOwner: nil andGroup: object ofItemAtURL: URL attributeKey: key attributes: attributes]; else @throw [OFNotImplementedException exceptionWithSelector: _cmd object: self]; } objc_autoreleasePoolPop(pool); } - (bool)fileExistsAtURL: (OFURL *)URL { |
︙ | ︙ |