ObjFW  Diff

Differences From Artifact [71e165dd8a]:

To Artifact [213cb19bf6]:


270
271
272
273
274
275
276







277
278
279
280
281
282
283
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290







+
+
+
+
+
+
+







	} @finally {
		FindClose(handle);
	}
#endif

	return files;
}

+ (void)changeToDirectory: (OFString*)path
{
	if (chdir([path cString]))
		@throw [OFChangeDirectoryFailedException newWithClass: self
								 path: path];
}

+ (void)changeModeOfFile: (OFString*)path
		  toMode: (mode_t)mode
{
#ifndef _WIN32
	if (chmod([path cString], mode))
		@throw [OFChangeFileModeFailedException newWithClass: self