30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#endif
#if (defined(OF_HAVE_SYMLINK) && !defined(OF_MORPHOS)) || defined(OF_WINDOWS)
# define OF_FILE_MANAGER_SUPPORTS_SYMLINKS
#endif
@class OFArray OF_GENERIC(ObjectType);
@class OFDate;
/*!
* @class OFFileManager OFFileManager.h ObjFW/OFFileManager.h
*
* @brief A class which provides management for files, e.g. reading contents of
* directories, deleting files, renaming files, etc.
*/
@interface OFFileManager: OFObject
/*!
* @brief Returns the default file manager.
*/
+ (OFFileManager *)defaultManager;
/*!
* @brief Returns the path for the current working directory.
*
* @return The path of the current working directory
*/
- (OFString *)currentDirectoryPath;
/*!
* @brief Checks whether a file exists at the specified path.
*
* @param path The path to check
* @return A boolean whether there is a file at the specified path
*/
- (bool)fileExistsAtPath: (OFString *)path;
|
>
>
>
>
>
>
>
>
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#endif
#if (defined(OF_HAVE_SYMLINK) && !defined(OF_MORPHOS)) || defined(OF_WINDOWS)
# define OF_FILE_MANAGER_SUPPORTS_SYMLINKS
#endif
@class OFArray OF_GENERIC(ObjectType);
@class OFDate;
@class OFURL;
/*!
* @class OFFileManager OFFileManager.h ObjFW/OFFileManager.h
*
* @brief A class which provides management for files, e.g. reading contents of
* directories, deleting files, renaming files, etc.
*/
@interface OFFileManager: OFObject
/*!
* @brief Returns the default file manager.
*/
+ (OFFileManager *)defaultManager;
/*!
* @brief Returns the path for the current working directory.
*
* @return The path of the current working directory
*/
- (OFString *)currentDirectoryPath;
/*!
* @brief Returns the URL for the current working directory.
*
* @return The URL of the current working directory
*/
- (OFURL *)currentDirectoryURL;
/*!
* @brief Checks whether a file exists at the specified path.
*
* @param path The path to check
* @return A boolean whether there is a file at the specified path
*/
- (bool)fileExistsAtPath: (OFString *)path;
|