Differences From Artifact [0e60eafa58]:
- File
src/OFFile.m
— part of check-in
[ba2b4661de]
at
2013-12-09 22:07:43
on branch trunk
— Fix createSymbolicLinkAtPath:withDestinationPath:.
The arguments were inverted. (user: js, size: 17758) [annotate] [blame] [check-ins using]
To Artifact [9780f15c6e]:
- File src/OFFile.m — part of check-in [f193f3fa8c] at 2013-12-09 22:08:41 on branch trunk — Add +[OFFile symbolicLinkExistsAtPath:]. (user: js, size: 18083) [annotate] [blame] [check-ins using]
︙ | |||
236 237 238 239 240 241 242 243 244 245 246 247 248 249 | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | + + + + + + + + + + + + + + + + + + + | #endif if (S_ISDIR(s.st_mode)) return true; return false; } #ifdef OF_HAVE_SYMLINK + (bool)symbolicLinkExistsAtPath: (OFString*)path { struct stat s; if (path == nil) @throw [OFInvalidArgumentException exception]; if (lstat([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], &s) == -1) return false; if (S_ISLNK(s.st_mode)) return true; return false; } #endif + (void)createDirectoryAtPath: (OFString*)path { if (path == nil) @throw [OFInvalidArgumentException exception]; #ifndef _WIN32 |
︙ |