| Modifier and Type | Class and Description |
|---|---|
static interface |
NSFileManager.Block_enumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler |
static interface |
NSFileManager.Block_getFileProviderServicesForItemAtURLCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSFileManager(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSFileManager |
alloc() |
static NSFileManager |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSDictionary<java.lang.String,?> |
attributesOfFileSystemForPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
attributesOfFileSystemForPath:error: returns an NSDictionary of key/value pairs containing the attributes of the filesystem containing the provided path.
|
NSDictionary<java.lang.String,?> |
attributesOfItemAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
attributesOfItemAtPath:error: returns an NSDictionary of key/value pairs containing the attributes of the item (file, directory, symlink, etc.) at the path in question.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
changeCurrentDirectoryPath(java.lang.String path) |
boolean |
changeFileAttributesAtPath(NSDictionary<?,?> attributes,
java.lang.String path)
Deprecated.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSArray<java.lang.String> |
componentsToDisplayForPath(java.lang.String path)
componentsToDisplayForPath: returns an NSArray of display names for the path provided.
|
NSURL |
containerURLForSecurityApplicationGroupIdentifier(java.lang.String groupIdentifier)
Available for OS X in 10.8.3.
|
NSData |
contentsAtPath(java.lang.String path)
These methods are provided here for compatibility.
|
boolean |
contentsEqualAtPathAndPath(java.lang.String path1,
java.lang.String path2)
-contentsEqualAtPath:andPath: does not take into account data stored in the resource fork or filesystem extended attributes.
|
NSArray<java.lang.String> |
contentsOfDirectoryAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
contentsOfDirectoryAtPath:error: returns an NSArray of NSStrings representing the filenames of the items in the directory.
|
NSArray<? extends NSURL> |
contentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(NSURL url,
NSArray<java.lang.String> keys,
long mask,
org.moe.natj.general.ptr.Ptr<NSError> error)
-contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error: returns an NSArray of NSURLs identifying the the directory entries.
|
boolean |
copyItemAtPathToPathError(java.lang.String srcPath,
java.lang.String dstPath,
org.moe.natj.general.ptr.Ptr<NSError> error)
These methods replace their non-error returning counterparts below.
|
boolean |
copyItemAtURLToURLError(NSURL srcURL,
NSURL dstURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
These methods are URL-taking equivalents of the four methods above.
|
boolean |
createDirectoryAtPathAttributes(java.lang.String path,
NSDictionary<?,?> attributes)
Deprecated.
|
boolean |
createDirectoryAtPathWithIntermediateDirectoriesAttributesError(java.lang.String path,
boolean createIntermediates,
NSDictionary<java.lang.String,?> attributes,
org.moe.natj.general.ptr.Ptr<NSError> error)
createDirectoryAtPath:withIntermediateDirectories:attributes:error: creates a directory at the specified path.
|
boolean |
createDirectoryAtURLWithIntermediateDirectoriesAttributesError(NSURL url,
boolean createIntermediates,
NSDictionary<java.lang.String,?> attributes,
org.moe.natj.general.ptr.Ptr<NSError> error)
createDirectoryAtURL:withIntermediateDirectories:attributes:error: creates a directory at the specified URL.
|
boolean |
createFileAtPathContentsAttributes(java.lang.String path,
NSData data,
NSDictionary<java.lang.String,?> attr) |
boolean |
createSymbolicLinkAtPathPathContent(java.lang.String path,
java.lang.String otherpath)
Deprecated.
|
boolean |
createSymbolicLinkAtPathWithDestinationPathError(java.lang.String path,
java.lang.String destPath,
org.moe.natj.general.ptr.Ptr<NSError> error)
createSymbolicLinkAtPath:withDestination:error: returns YES if the symbolic link that point at 'destPath' was able to be created at the location specified by 'path'.
|
boolean |
createSymbolicLinkAtURLWithDestinationURLError(NSURL url,
NSURL destURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
createSymbolicLinkAtURL:withDestinationURL:error: returns YES if the symbolic link that point at 'destURL' was able to be created at the location specified by 'url'.
|
java.lang.String |
currentDirectoryPath()
Process working directory management.
|
static java.lang.String |
debugDescription_static() |
static NSFileManager |
defaultManager()
Returns the default singleton instance.
|
NSFileManagerDelegate |
delegate()
Instances of NSFileManager may now have delegates.
|
static java.lang.String |
description_static() |
java.lang.String |
destinationOfSymbolicLinkAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
destinationOfSymbolicLinkAtPath:error: returns an NSString containing the path of the item pointed at by the symlink specified by 'path'.
|
NSArray<?> |
directoryContentsAtPath(java.lang.String path)
Deprecated.
|
java.lang.String |
displayNameAtPath(java.lang.String path)
displayNameAtPath: returns an NSString suitable for presentation to the user.
|
NSDirectoryEnumerator<java.lang.String> |
enumeratorAtPath(java.lang.String path)
enumeratorAtPath: returns an NSDirectoryEnumerator rooted at the provided path.
|
NSDirectoryEnumerator<NSURL> |
enumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(NSURL url,
NSArray<java.lang.String> keys,
long mask,
NSFileManager.Block_enumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler handler)
enumeratorAtURL:includingPropertiesForKeys:options:errorHandler: returns an NSDirectoryEnumerator rooted at the provided directory URL.
|
boolean |
evictUbiquitousItemAtURLError(NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
Removes the local instance of the ubiquitous item at the given URL.
|
NSDictionary<?,?> |
fileAttributesAtPathTraverseLink(java.lang.String path,
boolean yorn)
Deprecated.
|
boolean |
fileExistsAtPath(java.lang.String path)
The following methods are of limited utility.
|
boolean |
fileExistsAtPathIsDirectory(java.lang.String path,
org.moe.natj.general.ptr.BoolPtr isDirectory) |
NSDictionary<?,?> |
fileSystemAttributesAtPath(java.lang.String path)
Deprecated.
|
java.lang.String |
fileSystemRepresentationWithPath(java.lang.String path)
fileSystemRepresentationWithPath: returns an array of characters suitable for passing to lower-level POSIX style APIs.
|
void |
getFileProviderServicesForItemAtURLCompletionHandler(NSURL url,
NSFileManager.Block_getFileProviderServicesForItemAtURLCompletionHandler completionHandler)
Asynchronously returns a dictionary of zero or more NSFileProviderService instances, which enable your application to instruct the file's provider to take various actions on or with regards to the given URL.
|
boolean |
getRelationshipOfDirectoryAtURLToItemAtURLError(org.moe.natj.general.ptr.NIntPtr outRelationship,
NSURL directoryURL,
NSURL otherURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
Sets 'outRelationship' to NSURLRelationshipContains if the directory at 'directoryURL' directly or indirectly contains the item at 'otherURL', meaning 'directoryURL' is found while enumerating parent URLs starting from 'otherURL'.
|
boolean |
getRelationshipOfDirectoryInDomainToItemAtURLError(org.moe.natj.general.ptr.NIntPtr outRelationship,
long directory,
long domainMask,
NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
Similar to -[NSFileManager getRelationship:ofDirectoryAtURL:toItemAtURL:error:], except that the directory is instead defined by an NSSearchPathDirectory and NSSearchPathDomainMask.
|
static long |
hash_static() |
NSFileManager |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isDeletableFileAtPath(java.lang.String path) |
boolean |
isExecutableFileAtPath(java.lang.String path) |
boolean |
isReadableFileAtPath(java.lang.String path) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isUbiquitousItemAtURL(NSURL url)
Returns YES if the item for the specified URL is ubiquitous, NO otherwise.
|
boolean |
isWritableFileAtPath(java.lang.String path) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
boolean |
linkItemAtPathToPathError(java.lang.String srcPath,
java.lang.String dstPath,
org.moe.natj.general.ptr.Ptr<NSError> error) |
boolean |
linkItemAtURLToURLError(NSURL srcURL,
NSURL dstURL,
org.moe.natj.general.ptr.Ptr<NSError> error) |
NSArray<? extends NSURL> |
mountedVolumeURLsIncludingResourceValuesForKeysOptions(NSArray<java.lang.String> propertyKeys,
long options)
-mountedVolumeURLsIncludingResourceValuesForKeys:options: returns an NSArray of NSURLs locating the mounted volumes available on the computer.
|
boolean |
moveItemAtPathToPathError(java.lang.String srcPath,
java.lang.String dstPath,
org.moe.natj.general.ptr.Ptr<NSError> error) |
boolean |
moveItemAtURLToURLError(NSURL srcURL,
NSURL dstURL,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSFileManager |
new_objc() |
java.lang.String |
pathContentOfSymbolicLinkAtPath(java.lang.String path)
Deprecated.
|
boolean |
removeItemAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error) |
boolean |
removeItemAtURLError(NSURL URL,
org.moe.natj.general.ptr.Ptr<NSError> error) |
boolean |
replaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(NSURL originalItemURL,
NSURL newItemURL,
java.lang.String backupItemName,
long options,
org.moe.natj.general.ptr.Ptr<NSURL> resultingURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
-replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: is for developers who wish to perform a safe-save without using the full NSDocument machinery that is available in the AppKit.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
boolean |
setAttributesOfItemAtPathError(NSDictionary<java.lang.String,?> attributes,
java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
setAttributes:ofItemAtPath:error: returns YES when the attributes specified in the 'attributes' dictionary are set successfully on the item specified by 'path'.
|
void |
setDelegate_unsafe(NSFileManagerDelegate value)
Instances of NSFileManager may now have delegates.
|
void |
setDelegate(NSFileManagerDelegate value)
Instances of NSFileManager may now have delegates.
|
boolean |
setUbiquitousItemAtURLDestinationURLError(boolean flag,
NSURL url,
NSURL destinationURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
Changes whether the item for the specified URL is ubiquitous and moves the item to the destination URL.
|
static void |
setVersion_static(long aVersion) |
boolean |
startDownloadingUbiquitousItemAtURLError(NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
Start downloading a local instance of the specified ubiquitous item, if necessary.
|
java.lang.String |
stringWithFileSystemRepresentationLength(org.moe.natj.general.ptr.ConstBytePtr str,
long len)
stringWithFileSystemRepresentation:length: returns an NSString created from an array of bytes that are in the filesystem representation.
|
NSArray<java.lang.String> |
subpathsAtPath(java.lang.String path)
subpathsAtPath: returns an NSArray of all contents and subpaths recursively from the provided path.
|
NSArray<java.lang.String> |
subpathsOfDirectoryAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
subpathsOfDirectoryAtPath:error: returns an NSArray of NSStrings representing the filenames of the items in the specified directory and all its subdirectories recursively.
|
static org.moe.natj.objc.Class |
superclass_static() |
NSURL |
temporaryDirectory() |
boolean |
trashItemAtURLResultingItemURLError(NSURL url,
org.moe.natj.general.ptr.Ptr<NSURL> outResultingURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
trashItemAtURL:resultingItemURL:error: returns YES if the item at 'url' was successfully moved to a Trash.
|
java.lang.Object |
ubiquityIdentityToken()
Returns an opaque token that represents the current ubiquity identity.
|
NSURL |
URLForDirectoryInDomainAppropriateForURLCreateError(long directory,
long domain,
NSURL url,
boolean shouldCreate,
org.moe.natj.general.ptr.Ptr<NSError> error)
-URLForDirectory:inDomain:appropriateForURL:create:error: is a URL-based replacement for FSFindFolder().
|
NSURL |
URLForPublishingUbiquitousItemAtURLExpirationDateError(NSURL url,
org.moe.natj.general.ptr.Ptr<NSDate> outDate,
org.moe.natj.general.ptr.Ptr<NSError> error)
Returns a URL that can be shared with other users to allow them download a copy of the specified ubiquitous item.
|
NSURL |
URLForUbiquityContainerIdentifier(java.lang.String containerIdentifier)
Returns a file URL for the root of the ubiquity container directory corresponding to the supplied container ID.
|
NSArray<? extends NSURL> |
URLsForDirectoryInDomains(long directory,
long domainMask)
-URLsForDirectory:inDomains: is analogous to NSSearchPathForDirectoriesInDomains(), but returns an array of NSURL instances for use with URL-taking APIs.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSFileManager alloc()
public static NSFileManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static NSFileManager defaultManager()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSFileManager new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NSURL URLForDirectoryInDomainAppropriateForURLCreateError(long directory, long domain, NSURL url, boolean shouldCreate, org.moe.natj.general.ptr.Ptr<NSError> error)
You may pass only one of the values from the NSSearchPathDomainMask enumeration, and you may not pass NSAllDomainsMask.
public NSURL URLForPublishingUbiquitousItemAtURLExpirationDateError(NSURL url, org.moe.natj.general.ptr.Ptr<NSDate> outDate, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSURL URLForUbiquityContainerIdentifier(java.lang.String containerIdentifier)
public NSArray<? extends NSURL> URLsForDirectoryInDomains(long directory, long domainMask)
public NSDictionary<java.lang.String,?> attributesOfFileSystemForPathError(java.lang.String path, org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces fileSystemAttributesAtPath:.
public NSDictionary<java.lang.String,?> attributesOfItemAtPathError(java.lang.String path, org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces fileAttributesAtPath:traverseLink:.
public boolean changeCurrentDirectoryPath(java.lang.String path)
@Deprecated public boolean changeFileAttributesAtPath(NSDictionary<?,?> attributes, java.lang.String path)
public NSArray<java.lang.String> componentsToDisplayForPath(java.lang.String path)
public NSURL containerURLForSecurityApplicationGroupIdentifier(java.lang.String groupIdentifier)
public NSData contentsAtPath(java.lang.String path)
public boolean contentsEqualAtPathAndPath(java.lang.String path1,
java.lang.String path2)
public NSArray<java.lang.String> contentsOfDirectoryAtPathError(java.lang.String path, org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces directoryContentsAtPath:
public NSArray<? extends NSURL> contentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(NSURL url, NSArray<java.lang.String> keys, long mask, org.moe.natj.general.ptr.Ptr<NSError> error)
This method always does a shallow enumeration of the specified directory (i.e. it always acts as if NSDirectoryEnumerationSkipsSubdirectoryDescendants has been specified). If you need to perform a deep enumeration, use -[NSFileManager enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:].
If you wish to only receive the URLs and no other attributes, then pass '0' for 'options' and an empty NSArray ('[NSArray array]') for 'keys'. If you wish to have the property caches of the vended URLs pre-populated with a default set of attributes, then pass '0' for 'options' and 'nil' for 'keys'.
public boolean copyItemAtPathToPathError(java.lang.String srcPath,
java.lang.String dstPath,
org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean copyItemAtURLToURLError(NSURL srcURL, NSURL dstURL, org.moe.natj.general.ptr.Ptr<NSError> error)
@Deprecated
public boolean createDirectoryAtPathAttributes(java.lang.String path,
NSDictionary<?,?> attributes)
public boolean createDirectoryAtPathWithIntermediateDirectoriesAttributesError(java.lang.String path,
boolean createIntermediates,
NSDictionary<java.lang.String,?> attributes,
org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces createDirectoryAtPath:attributes:
public boolean createDirectoryAtURLWithIntermediateDirectoriesAttributesError(NSURL url, boolean createIntermediates, NSDictionary<java.lang.String,?> attributes, org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean createFileAtPathContentsAttributes(java.lang.String path,
NSData data,
NSDictionary<java.lang.String,?> attr)
@Deprecated
public boolean createSymbolicLinkAtPathPathContent(java.lang.String path,
java.lang.String otherpath)
public boolean createSymbolicLinkAtPathWithDestinationPathError(java.lang.String path,
java.lang.String destPath,
org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces createSymbolicLinkAtPath:pathContent:
public boolean createSymbolicLinkAtURLWithDestinationURLError(NSURL url, NSURL destURL, org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.String currentDirectoryPath()
public NSFileManagerDelegate delegate()
public java.lang.String destinationOfSymbolicLinkAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces pathContentOfSymbolicLinkAtPath:
@Deprecated public NSArray<?> directoryContentsAtPath(java.lang.String path)
public java.lang.String displayNameAtPath(java.lang.String path)
public NSDirectoryEnumerator<java.lang.String> enumeratorAtPath(java.lang.String path)
public NSDirectoryEnumerator<NSURL> enumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(NSURL url, NSArray<java.lang.String> keys, long mask, NSFileManager.Block_enumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler handler)
If you wish to only receive the URLs and no other attributes, then pass '0' for 'options' and an empty NSArray ('[NSArray array]') for 'keys'. If you wish to have the property caches of the vended URLs pre-populated with a default set of attributes, then pass '0' for 'options' and 'nil' for 'keys'.
public boolean evictUbiquitousItemAtURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
@Deprecated public NSDictionary<?,?> fileAttributesAtPathTraverseLink(java.lang.String path, boolean yorn)
public boolean fileExistsAtPath(java.lang.String path)
public boolean fileExistsAtPathIsDirectory(java.lang.String path,
org.moe.natj.general.ptr.BoolPtr isDirectory)
@Deprecated public NSDictionary<?,?> fileSystemAttributesAtPath(java.lang.String path)
public java.lang.String fileSystemRepresentationWithPath(java.lang.String path)
public boolean getRelationshipOfDirectoryInDomainToItemAtURLError(org.moe.natj.general.ptr.NIntPtr outRelationship,
long directory,
long domainMask,
NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean getRelationshipOfDirectoryAtURLToItemAtURLError(org.moe.natj.general.ptr.NIntPtr outRelationship,
NSURL directoryURL,
NSURL otherURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
public NSFileManager init()
public boolean isDeletableFileAtPath(java.lang.String path)
public boolean isExecutableFileAtPath(java.lang.String path)
public boolean isReadableFileAtPath(java.lang.String path)
public boolean isUbiquitousItemAtURL(NSURL url)
public boolean isWritableFileAtPath(java.lang.String path)
public boolean linkItemAtPathToPathError(java.lang.String srcPath,
java.lang.String dstPath,
org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean linkItemAtURLToURLError(NSURL srcURL, NSURL dstURL, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSArray<? extends NSURL> mountedVolumeURLsIncludingResourceValuesForKeysOptions(NSArray<java.lang.String> propertyKeys, long options)
public boolean moveItemAtPathToPathError(java.lang.String srcPath,
java.lang.String dstPath,
org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean moveItemAtURLToURLError(NSURL srcURL, NSURL dstURL, org.moe.natj.general.ptr.Ptr<NSError> error)
@Deprecated public java.lang.String pathContentOfSymbolicLinkAtPath(java.lang.String path)
public boolean removeItemAtPathError(java.lang.String path,
org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean removeItemAtURLError(NSURL URL, org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean replaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(NSURL originalItemURL, NSURL newItemURL, java.lang.String backupItemName, long options, org.moe.natj.general.ptr.Ptr<NSURL> resultingURL, org.moe.natj.general.ptr.Ptr<NSError> error)
The `originalItemURL` is the item being replaced. `newItemURL` is the item which will replace the original item. This item should be placed in a temporary directory as provided by the OS, or in a uniquely named directory placed in the same directory as the original item if the temporary directory is not available. If `backupItemName` is provided, that name will be used to create a backup of the original item. The backup is placed in the same directory as the original item. If an error occurs during the creation of the backup item, the operation will fail. If there is already an item with the same name as the backup item, that item will be removed. The backup item will be removed in the event of success unless the `NSFileManagerItemReplacementWithoutDeletingBackupItem` option is provided in `options`. For `options`, pass `0` to get the default behavior, which uses only the metadata from the new item while adjusting some properties using values from the original item. Pass `NSFileManagerItemReplacementUsingNewMetadataOnly` in order to use all possible metadata from the new item.
public boolean setAttributesOfItemAtPathError(NSDictionary<java.lang.String,?> attributes, java.lang.String path, org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces changeFileAttributes:atPath:.
public void setDelegate_unsafe(NSFileManagerDelegate value)
public void setDelegate(NSFileManagerDelegate value)
public boolean setUbiquitousItemAtURLDestinationURLError(boolean flag,
NSURL url,
NSURL destinationURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean startDownloadingUbiquitousItemAtURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.String stringWithFileSystemRepresentationLength(org.moe.natj.general.ptr.ConstBytePtr str,
long len)
public NSArray<java.lang.String> subpathsAtPath(java.lang.String path)
public NSArray<java.lang.String> subpathsOfDirectoryAtPathError(java.lang.String path, org.moe.natj.general.ptr.Ptr<NSError> error)
This method replaces subpathsAtPath:
public NSURL temporaryDirectory()
public java.lang.Object ubiquityIdentityToken()
If you don't need the container URL and just want to check if ubiquity containers are available you should use this method instead of checking -URLForUbiquityContainerIdentifier:.
public void getFileProviderServicesForItemAtURLCompletionHandler(NSURL url, NSFileManager.Block_getFileProviderServicesForItemAtURLCompletionHandler completionHandler)
public boolean trashItemAtURLResultingItemURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSURL> outResultingURL, org.moe.natj.general.ptr.Ptr<NSError> error)
To easily discover if an item is in the Trash, you may use [fileManager getRelationship:&result ofDirectory:NSTrashDirectory inDomain:0 toItemAtURL:url error:&error] && result == NSURLRelationshipContains.