Differences From Artifact [214e7cf8ea]:
- File
src/OFFile.m
— part of check-in
[55d99d15e3]
at
2013-01-13 01:19:49
on branch trunk
— OFFile: Use _wrename() instead of MoveFileW().
Unlike MoveFileW(), _wrename() sets errno. (user: js, size: 18503) [annotate] [blame] [check-ins using]
To Artifact [7dcc3acfc8]:
- File
src/OFFile.m
— part of check-in
[06c0c98e78]
at
2013-01-13 01:24:59
on branch trunk
— OFFile: Make use of _wchmod on Windows.
Actually, this seems to do exactly what was done manually with
{Get,Set}FileAttributesW before. (user: js, size: 18048) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
391 392 393 394 395 396 397 | #ifndef _PSP + (void)changeModeOfFileAtPath: (OFString*)path mode: (mode_t)mode { # ifndef _WIN32 if (chmod([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], mode)) | < < < < | | < < < < < < < < < < < < < | 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | #ifndef _PSP + (void)changeModeOfFileAtPath: (OFString*)path mode: (mode_t)mode { # ifndef _WIN32 if (chmod([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], mode)) # else if (_wchmod([path UTF16String], mode)) # endif @throw [OFChangeFileModeFailedException exceptionWithClass: self path: path mode: mode]; } #endif + (off_t)sizeOfFileAtPath: (OFString*)path { #ifndef _WIN32 struct stat s; |
︙ | ︙ |