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>
27 #import "OFSeekableStream.h"
29 OF_ASSUME_NONNULL_BEGIN
31 @class OFArray OF_GENERIC(ObjectType);
35 typedef struct __stat64 of_stat_t;
36 #elif defined(OF_HAVE_OFF64_T)
37 typedef struct stat64 of_stat_t;
39 typedef struct stat of_stat_t;
75 + (instancetype)fileWithPath: (
OFString*)path
85 + (instancetype)fileWithFileDescriptor: (
int)fd;
100 + (bool)fileExistsAtPath: (
OFString*)path;
108 + (bool)directoryExistsAtPath: (
OFString*)path;
110 #ifdef OF_HAVE_SYMLINK
117 + (bool)symbolicLinkExistsAtPath: (
OFString*)path;
125 + (void)createDirectoryAtPath: (
OFString*)path;
133 + (void)createDirectoryAtPath: (
OFString*)path
134 createParents: (
bool)createParents;
151 + (void)changeCurrentDirectoryPath: (
OFString*)path;
158 + (of_offset_t)sizeOfFileAtPath: (
OFString*)path;
190 + (void)changePermissionsOfItemAtPath: (
OFString*)path
191 permissions: (mode_t)permissions;
204 + (void)changeOwnerOfItemAtPath: (
OFString*)path
222 + (void)copyItemAtPath: (
OFString*)source
238 + (void)moveItemAtPath: (
OFString*)source
248 + (void)removeItemAtPath: (
OFString*)path;
262 + (void)linkItemAtPath: (
OFString*)source
266 #ifdef OF_HAVE_SYMLINK
280 + (void)createSymbolicLinkAtPath: (
OFString*)destination
281 withDestinationPath: (
OFString*)source;
323 - initWithFileDescriptor: (
int)fd;
329 extern int of_stat(
OFString *path, of_stat_t *buffer);
330 extern int of_lstat(
OFString *path, of_stat_t *buffer);
335 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:95
A class for storing, accessing and comparing dates.
Definition: OFDate.h:30
A class for handling strings.
Definition: OFString.h:91
A class which provides functions to read, write and manipulate files.
Definition: OFFile.h:47
A stream that supports seeking.
Definition: OFSeekableStream.h:51