287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
|
+
+
+
-
-
+
+
+
+
+
+
+
+
|
#endif
}
- (OFURL *)currentDirectoryURL
{
OFMutableURL *URL = [OFMutableURL URL];
void *pool = objc_autoreleasePoolPush();
OFString *path;
[URL setScheme: @"file"];
#if OF_PATH_DELIMITER != '/'
[URL setPath: [[[self currentDirectoryPath] pathComponents]
componentsJoinedByString: @"/"]];
path = [[[self currentDirectoryPath] pathComponents]
componentsJoinedByString: @"/"];
#else
path = [self currentDirectoryPath];
#endif
[URL setPath: [path stringByAppendingString: @"/"]];
[URL makeImmutable];
objc_autoreleasePoolPop(pool);
return URL;
}
|