OFFile Class Reference
#import <OFFile.h>
List of all members.
Detailed Description
The OFFile class provides functions to read, write and manipulate files.
Member Function Documentation
+ (void) changeModeOfFile: |
|
(OFString*) |
path |
toMode: |
|
(mode_t) |
mode | |
|
|
| | |
Changes the mode of a file.
Not available on Windows.
- Parameters:
-
| path | The path to the file of which the mode should be changed as a string |
| mode | The new mode for the file |
+ (void) changeOwnerOfFile: |
|
(OFString*) |
path |
toOwner: |
|
(uid_t) |
owner |
group: |
|
(gid_t) |
group | |
|
|
| | |
Changes the owner of a file.
Not available on Windows.
- Parameters:
-
| path | The path to the file of which the owner should be changed as a string |
| owner | The new owner for the file |
| group | The new group for the file |
Deletes a file.
- Parameters:
-
| path | The path to the file of which should be deleted as a string |
+ (id) fileWithFilePointer: |
|
(FILE*) |
fp |
|
|
- Parameters:
-
| fp | A file pointer, returned from for example fopen(). It is not closed when the OFFile object is deallocated! |
- Returns:
- A new autoreleased OFFile
- Parameters:
-
| path | The path to the file to open as a string |
| mode | The mode in which the file should be opened as a string |
- Returns:
- A new autoreleased OFFile
- (id) initWithFilePointer: |
|
(FILE*) |
fp |
|
|
Initializes an already allocated OFFile.
- Parameters:
-
| fp | A file pointer, returned from for example fopen(). It is not closed when the OFFile object is deallocated! |
Initializes an already allocated OFFile.
- Parameters:
-
| path | The path to the file to open as a string |
| mode | The mode in which the file should be opened as a string |
- Returns:
- An initialized OFFile
Hardlinks a file.
Not available on Windows.
- Parameters:
-
| src | The path to the file of which should be linked as a string |
| dest | The path to where the file should be linked as a string |
Renames a file.
- Parameters:
-
| from | The file to rename |
| to | The new name |
Symlinks a file.
Not available on Windows.
- Parameters:
-
| src | The path to the file of which should be symlinked as a string |
| dest | The path to where the file should be symlinked as a string |
The documentation for this class was generated from the following files: