@@ -1568,22 +1568,27 @@ # endif objc_autoreleasePoolPop(pool); } +#endif - (void)linkItemAtURL: (OFURL *)source toURL: (OFURL *)destination { +#ifdef OF_FILE_MANAGER_SUPPORTS_LINKS void *pool = objc_autoreleasePoolPush(); [self linkItemAtPath: [source fileSystemRepresentation] toPath: [destination fileSystemRepresentation]]; objc_autoreleasePoolPop(pool); -} +#else + @throw [OFNotImplementedException exceptionWithSelector: _cmd + object: self]; #endif +} #ifdef OF_FILE_MANAGER_SUPPORTS_SYMLINKS - (void)createSymbolicLinkAtPath: (OFString *)destination withDestinationPath: (OFString *)source { @@ -1616,22 +1621,27 @@ errNo: 0]; # endif objc_autoreleasePoolPop(pool); } +#endif - (void)createSymbolicLinkAtURL: (OFURL *)destination withDestinationURL: (OFURL *)source { +#ifdef OF_FILE_MANAGER_SUPPORTS_SYMLINKS void *pool = objc_autoreleasePoolPush(); [self createSymbolicLinkAtPath: [destination fileSystemRepresentation] withDestinationPath: [source fileSystemRepresentation]]; objc_autoreleasePoolPop(pool); -} +#else + @throw [OFNotImplementedException exceptionWithSelector: _cmd + object: self]; #endif +} @end @implementation OFDictionary (FileAttributes) - (uintmax_t)fileSize {