17 #ifndef __STDC_LIMIT_MACROS
18 # define __STDC_LIMIT_MACROS
20 #ifndef __STDC_CONSTANT_MACROS
21 # define __STDC_CONSTANT_MACROS
24 #include <sys/types.h>
26 #import "OFSeekableStream.h"
56 + (instancetype)fileWithPath: (
OFString*)path
66 + (instancetype)fileWithFileDescriptor: (
int)fileDescriptor;
81 + (BOOL)fileExistsAtPath: (
OFString*)path;
89 + (BOOL)directoryExistsAtPath: (
OFString*)path;
96 + (void)createDirectoryAtPath: (
OFString*)path;
104 + (void)createDirectoryAtPath: (
OFString*)path
105 createParents: (BOOL)createParents;
120 + (void)changeToDirectoryAtPath: (
OFString*)path;
127 + (off_t)sizeOfFileAtPath: (
OFString*)path;
146 + (void)changeModeOfFileAtPath: (
OFString*)path
150 #if !defined(_WIN32) && !defined(_PSP)
161 + (void)changeOwnerOfFileAtPath: (
OFString*)path
172 + (void)copyFileAtPath: (
OFString*)source
181 + (void)renameFileAtPath: (
OFString*)source
189 + (void)deleteFileAtPath: (
OFString*)path;
196 + (void)deleteDirectoryAtPath: (
OFString*)path;
207 + (void)linkFileAtPath: (
OFString*)source
211 #if !defined(_WIN32) && !defined(_PSP)
220 + (void)symlinkFileAtPath: (
OFString*)source
240 - initWithFileDescriptor: (
int)fileDescriptor;