ObjFW  Diff

Differences From Artifact [5e6541f4e0]:

To Artifact [f110a6ebca]:


75
76
77
78
79
80
81
82
83


84
85
86
87
88
89
90

91
92
93
94
95
96
97
98
99
100
101
102


103
104
105
106
107
108
109
110
111
112
113


114
115
116
117
118
119
120
75
76
77
78
79
80
81


82
83
84
85
86
87
88
89

90
91
92
93
94
95
96
97
98
99
100


101
102
103
104
105
106
107
108
109
110
111


112
113
114
115
116
117
118
119
120







-
-
+
+






-
+










-
-
+
+









-
-
+
+








/**
 * Renames a file.
 *
 * \param from The file to rename
 * \param to The new name
 */
+ (void)rename: (OFString*)from
	    to: (OFString*)to;
+ (void)renameFileWithPath: (OFString*)from
		    toPath: (OFString*)to;

/**
 * Deletes a file.
 *
 * \param path The path to the file of which should be deleted as a string
 */
+ (void)delete: (OFString*)path;
+ (void)deleteFileWithPath: (OFString*)path;

#ifndef _WIN32
/**
 * Hardlinks a file.
 *
 * Not available on Windows.
 *
 * \param src The path to the file of which should be linked as a string
 * \param dest The path to where the file should be linked as a string
 */
+ (void)link: (OFString*)src
	  to: (OFString*)dest;
+ (void)linkFileWithPath: (OFString*)src
		  toPath: (OFString*)dest;

/**
 * Symlinks a file.
 *
 * Not available on Windows.
 *
 * \param src The path to the file of which should be symlinked as a string
 * \param dest The path to where the file should be symlinked as a string
 */
+ (void)symlink: (OFString*)src
	     to: (OFString*)dest;
+ (void)symlinkFileWithPath: (OFString*)src
		     toPath: (OFString*)dest;
#endif

/**
 * Initializes an already allocated OFFile.
 *
 * \param path The path to the file to open as a string
 * \param mode The mode in which the file should be opened as a string