ObjFW  Diff

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]:


688
689
690
691
692
693
694
695


696
697
698
699
700
701
702
		else if ([key isEqual: of_file_attribute_key_group])
			[self of_setOwner: nil
				 andGroup: object
			      ofItemAtURL: URL
			     attributeKey: key
			       attributes: attributes];
		else
			@throw [OFInvalidArgumentException exception];


	}

	objc_autoreleasePoolPop(pool);
}

- (bool)fileExistsAtURL: (OFURL *)URL
{







|
>
>







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
{