Package apple.foundation.protocol
Interface NSFileManagerDelegate
-
public interface NSFileManagerDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanfileManagerShouldCopyItemAtPathToPath(@NotNull NSFileManager fileManager, @NotNull java.lang.String srcPath, @NotNull java.lang.String dstPath)fileManager:shouldCopyItemAtPath:toPath: gives the delegate an opportunity to filter the resulting copy.default booleanfileManagerShouldCopyItemAtURLToURL(@NotNull NSFileManager fileManager, @NotNull NSURL srcURL, @NotNull NSURL dstURL)API-Since: 4.0default booleanfileManagerShouldLinkItemAtPathToPath(@NotNull NSFileManager fileManager, @NotNull java.lang.String srcPath, @NotNull java.lang.String dstPath)fileManager:shouldLinkItemAtPath:toPath: acts as the other "should" methods, but this applies to the file manager creating hard links to the files in question.default booleanfileManagerShouldLinkItemAtURLToURL(@NotNull NSFileManager fileManager, @NotNull NSURL srcURL, @NotNull NSURL dstURL)API-Since: 4.0default booleanfileManagerShouldMoveItemAtPathToPath(@NotNull NSFileManager fileManager, @NotNull java.lang.String srcPath, @NotNull java.lang.String dstPath)fileManager:shouldMoveItemAtPath:toPath: gives the delegate an opportunity to not move the item at the specified path.default booleanfileManagerShouldMoveItemAtURLToURL(@NotNull NSFileManager fileManager, @NotNull NSURL srcURL, @NotNull NSURL dstURL)API-Since: 4.0default booleanfileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull java.lang.String srcPath, @NotNull java.lang.String dstPath)fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: gives the delegate an opportunity to recover from or continue copying after an error.default booleanfileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull NSURL srcURL, @NotNull NSURL dstURL)API-Since: 4.0default booleanfileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull java.lang.String srcPath, @NotNull java.lang.String dstPath)fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: allows the delegate an opportunity to remedy the error which occurred in linking srcPath to dstPath.default booleanfileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull NSURL srcURL, @NotNull NSURL dstURL)API-Since: 4.0default booleanfileManagerShouldProceedAfterErrorMovingItemAtPathToPath(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull java.lang.String srcPath, @NotNull java.lang.String dstPath)fileManager:shouldProceedAfterError:movingItemAtPath:toPath: functions much like fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: above.default booleanfileManagerShouldProceedAfterErrorMovingItemAtURLToURL(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull NSURL srcURL, @NotNull NSURL dstURL)API-Since: 4.0default booleanfileManagerShouldProceedAfterErrorRemovingItemAtPath(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull java.lang.String path)fileManager:shouldProceedAfterError:removingItemAtPath: allows the delegate an opportunity to remedy the error which occurred in removing the item at the path provided.default booleanfileManagerShouldProceedAfterErrorRemovingItemAtURL(@NotNull NSFileManager fileManager, @NotNull NSError error, @NotNull NSURL URL)API-Since: 4.0default booleanfileManagerShouldRemoveItemAtPath(@NotNull NSFileManager fileManager, @NotNull java.lang.String path)fileManager:shouldRemoveItemAtPath: allows the delegate the opportunity to not remove the item at path.default booleanfileManagerShouldRemoveItemAtURL(@NotNull NSFileManager fileManager, @NotNull NSURL URL)API-Since: 4.0
-
-
-
Method Detail
-
fileManagerShouldCopyItemAtPathToPath
default boolean fileManagerShouldCopyItemAtPathToPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull java.lang.String srcPath, @NotNull @NotNull java.lang.String dstPath)fileManager:shouldCopyItemAtPath:toPath: gives the delegate an opportunity to filter the resulting copy. Returning YES from this method will allow the copy to happen. Returning NO from this method causes the item in question to be skipped. If the item skipped was a directory, no children of that directory will be copied, nor will the delegate be notified of those children. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned YES.
-
fileManagerShouldCopyItemAtURLToURL
default boolean fileManagerShouldCopyItemAtURLToURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSURL srcURL, @NotNull @NotNull NSURL dstURL)API-Since: 4.0
-
fileManagerShouldLinkItemAtPathToPath
default boolean fileManagerShouldLinkItemAtPathToPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull java.lang.String srcPath, @NotNull @NotNull java.lang.String dstPath)fileManager:shouldLinkItemAtPath:toPath: acts as the other "should" methods, but this applies to the file manager creating hard links to the files in question. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned YES.
-
fileManagerShouldLinkItemAtURLToURL
default boolean fileManagerShouldLinkItemAtURLToURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSURL srcURL, @NotNull @NotNull NSURL dstURL)API-Since: 4.0
-
fileManagerShouldMoveItemAtPathToPath
default boolean fileManagerShouldMoveItemAtPathToPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull java.lang.String srcPath, @NotNull @NotNull java.lang.String dstPath)fileManager:shouldMoveItemAtPath:toPath: gives the delegate an opportunity to not move the item at the specified path. If the source path and the destination path are not on the same device, a copy is performed to the destination path and the original is removed. If the copy does not succeed, an error is returned and the incomplete copy is removed, leaving the original in place. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned YES.
-
fileManagerShouldMoveItemAtURLToURL
default boolean fileManagerShouldMoveItemAtURLToURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSURL srcURL, @NotNull @NotNull NSURL dstURL)API-Since: 4.0
-
fileManagerShouldProceedAfterErrorCopyingItemAtPathToPath
default boolean fileManagerShouldProceedAfterErrorCopyingItemAtPathToPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull java.lang.String srcPath, @NotNull @NotNull java.lang.String dstPath)fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: gives the delegate an opportunity to recover from or continue copying after an error. If an error occurs, the error object will contain an NSError indicating the problem. The source path and destination paths are also provided. If this method returns YES, the NSFileManager instance will continue as if the error had not occurred. If this method returns NO, the NSFileManager instance will stop copying, return NO from copyItemAtPath:toPath:error: and the error will be provied there. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned NO.
-
fileManagerShouldProceedAfterErrorCopyingItemAtURLToURL
default boolean fileManagerShouldProceedAfterErrorCopyingItemAtURLToURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull NSURL srcURL, @NotNull @NotNull NSURL dstURL)API-Since: 4.0
-
fileManagerShouldProceedAfterErrorLinkingItemAtPathToPath
default boolean fileManagerShouldProceedAfterErrorLinkingItemAtPathToPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull java.lang.String srcPath, @NotNull @NotNull java.lang.String dstPath)fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: allows the delegate an opportunity to remedy the error which occurred in linking srcPath to dstPath. If the delegate returns YES from this method, the linking will continue. If the delegate returns NO from this method, the linking operation will stop and the error will be returned via linkItemAtPath:toPath:error:. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned NO.
-
fileManagerShouldProceedAfterErrorLinkingItemAtURLToURL
default boolean fileManagerShouldProceedAfterErrorLinkingItemAtURLToURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull NSURL srcURL, @NotNull @NotNull NSURL dstURL)API-Since: 4.0
-
fileManagerShouldProceedAfterErrorMovingItemAtPathToPath
default boolean fileManagerShouldProceedAfterErrorMovingItemAtPathToPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull java.lang.String srcPath, @NotNull @NotNull java.lang.String dstPath)fileManager:shouldProceedAfterError:movingItemAtPath:toPath: functions much like fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: above. The delegate has the opportunity to remedy the error condition and allow the move to continue. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned NO.
-
fileManagerShouldProceedAfterErrorMovingItemAtURLToURL
default boolean fileManagerShouldProceedAfterErrorMovingItemAtURLToURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull NSURL srcURL, @NotNull @NotNull NSURL dstURL)API-Since: 4.0
-
fileManagerShouldProceedAfterErrorRemovingItemAtPath
default boolean fileManagerShouldProceedAfterErrorRemovingItemAtPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull java.lang.String path)fileManager:shouldProceedAfterError:removingItemAtPath: allows the delegate an opportunity to remedy the error which occurred in removing the item at the path provided. If the delegate returns YES from this method, the removal operation will continue. If the delegate returns NO from this method, the removal operation will stop and the error will be returned via linkItemAtPath:toPath:error:. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned NO.
-
fileManagerShouldProceedAfterErrorRemovingItemAtURL
default boolean fileManagerShouldProceedAfterErrorRemovingItemAtURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSError error, @NotNull @NotNull NSURL URL)API-Since: 4.0
-
fileManagerShouldRemoveItemAtPath
default boolean fileManagerShouldRemoveItemAtPath(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull java.lang.String path)fileManager:shouldRemoveItemAtPath: allows the delegate the opportunity to not remove the item at path. If the delegate returns YES from this method, the NSFileManager instance will attempt to remove the item. If the delegate returns NO from this method, the remove skips the item. If the item is a directory, no children of that item will be visited. If the delegate does not implement this method, the NSFileManager instance acts as if this method returned YES.
-
fileManagerShouldRemoveItemAtURL
default boolean fileManagerShouldRemoveItemAtURL(@NotNull @NotNull NSFileManager fileManager, @NotNull @NotNull NSURL URL)API-Since: 4.0
-
-