ObjFW  Check-in [140b7d93e3]

Overview
Comment:-[fileExistsAtPath:]: Don't require S_ISREG
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 140b7d93e31679acf594182b535ec739fd42c4659c2423e5995206f0bc60ff56
User & Date: js on 2023-08-22 15:19:39
Other Links: manifest | tags
Context
2023-08-22
15:46
Re-enable UNIX sockets on Hurd check-in: 9b50999d63 user: js tags: trunk
15:19
-[fileExistsAtPath:]: Don't require S_ISREG check-in: 140b7d93e3 user: js tags: trunk
2023-08-17
14:53
Add more designated initializers check-in: abc315cc89 user: js tags: trunk
Changes

Modified src/OFFileIRIHandler.m from [624183587b] to [b18e6efaea].

1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040

	if (IRI == nil)
		@throw [OFInvalidArgumentException exception];

	if (![IRI.scheme isEqual: _scheme])
		@throw [OFInvalidArgumentException exception];

	if (statWrapper(IRI.fileSystemRepresentation, &s) != 0) {
		objc_autoreleasePoolPop(pool);
		return false;
	}

	ret = S_ISREG(s.st_mode);

	objc_autoreleasePoolPop(pool);

	return ret;
}

- (bool)directoryExistsAtIRI: (OFIRI *)IRI







|
<
<
<
<
<







1021
1022
1023
1024
1025
1026
1027
1028





1029
1030
1031
1032
1033
1034
1035

	if (IRI == nil)
		@throw [OFInvalidArgumentException exception];

	if (![IRI.scheme isEqual: _scheme])
		@throw [OFInvalidArgumentException exception];

	ret = (statWrapper(IRI.fileSystemRepresentation, &s) == 0);






	objc_autoreleasePoolPop(pool);

	return ret;
}

- (bool)directoryExistsAtIRI: (OFIRI *)IRI