@@ -354,21 +354,21 @@ [files makeImmutable]; return files; } -+ (void)changeToDirectory: (OFString*)path ++ (void)changeToDirectoryAtPath: (OFString*)path { if (chdir([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE])) @throw [OFChangeDirectoryFailedException exceptionWithClass: self path: path]; } #ifndef _PSP -+ (void)changeModeOfFile: (OFString*)path - toMode: (mode_t)mode ++ (void)changeModeOfFileAtPath: (OFString*)path + mode: (mode_t)mode { # ifndef _WIN32 if (chmod([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], mode)) @throw [OFChangeFileModeFailedException exceptionWithClass: self @@ -397,11 +397,11 @@ mode: mode]; # endif } #endif -+ (off_t)sizeOfFile: (OFString*)path ++ (off_t)sizeOfFileAtPath: (OFString*)path { struct stat s; if (stat([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], &s) == -1) @@ -411,11 +411,11 @@ mode: @"r"]; return s.st_size; } -+ (OFDate*)modificationDateOfFile: (OFString*)path ++ (OFDate*)modificationDateOfFileAtPath: (OFString*)path { struct stat s; if (stat([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], &s) == -1) @@ -427,13 +427,13 @@ /* FIXME: We could be more precise on some OSes */ return [OFDate dateWithTimeIntervalSince1970: s.st_mtime]; } #if !defined(_WIN32) && !defined(_PSP) -+ (void)changeOwnerOfFile: (OFString*)path - toOwner: (OFString*)owner - group: (OFString*)group ++ (void)changeOwnerOfFileAtPath: (OFString*)path + owner: (OFString*)owner + group: (OFString*)group { uid_t uid = -1; gid_t gid = -1; if (owner == nil && group == nil)