Package org.robovm.apple.foundation
Class NSFileManager
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.foundation.NSFileManager
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class NSFileManager extends NSObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSFileManager.Notificationsstatic classNSFileManager.NSFileManagerPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description NSFileManager()protectedNSFileManager(NSObject.Handle h, long handle)protectedNSFileManager(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
NSFileManager
public NSFileManager() -
NSFileManager
-
NSFileManager
-
-
Method Details
-
getDefaultManager
-
getDelegate
-
setDelegate
-
getCurrentDirectoryPath
-
getUbiquityIdentityToken
-
getTemporaryDirectory
- Since:
- Available in iOS 10.0 and later.
-
isDirectoryAtPath
-
getRelationshipOfDirectoryToItem
public NSURLRelationship getRelationshipOfDirectoryToItem(NSURL directoryURL, NSURL otherURL) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 8.0 and later.
-
getRelationshipOfDirectoryToItem
public NSURLRelationship getRelationshipOfDirectoryToItem(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, NSURL url) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 8.0 and later.
-
UbiquityIdentityDidChangeNotification
-
getMountedVolumeURLsIncludingResourceValues
protected NSArray<NSURL> getMountedVolumeURLsIncludingResourceValues(List<NSURLFileSystemProperty> propertyKeys, NSVolumeEnumerationOptions options) -
getContentsOfDirectoryAtURL
public NSArray<NSURL> getContentsOfDirectoryAtURL(NSURL url, List<NSURLFileSystemProperty> keys, NSDirectoryEnumerationOptions mask) throws NSErrorException- Throws:
NSErrorException
-
getURLsForDirectory
public NSArray<NSURL> getURLsForDirectory(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask) -
getURLForDirectory
public NSURL getURLForDirectory(NSSearchPathDirectory directory, NSSearchPathDomainMask domain, NSURL url, boolean shouldCreate) throws NSErrorException- Throws:
NSErrorException
-
getRelationshipOfDirectoryToItem
protected boolean getRelationshipOfDirectoryToItem(MachineSizedSIntPtr outRelationship, NSURL directoryURL, NSURL otherURL) throws NSErrorException- Throws:
NSErrorException
-
getRelationshipOfDirectoryToItem
protected boolean getRelationshipOfDirectoryToItem(MachineSizedSIntPtr outRelationship, NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, NSURL url) throws NSErrorException- Throws:
NSErrorException
-
createDirectoryAtURL
public boolean createDirectoryAtURL(NSURL url, boolean createIntermediates, NSFileAttributes attributes) throws NSErrorException- Throws:
NSErrorException
-
createSymbolicLinkAtURL
- Throws:
NSErrorException
-
setAttributesForItem
public boolean setAttributesForItem(NSFileAttributes attributes, String path) throws NSErrorException- Throws:
NSErrorException
-
createDirectoryAtPath
public boolean createDirectoryAtPath(String path, boolean createIntermediates, NSFileAttributes attributes) throws NSErrorException- Throws:
NSErrorException
-
getContentsOfDirectoryAtPath
- Throws:
NSErrorException
-
getSubpathsOfDirectoryAtPath
- Throws:
NSErrorException
-
getAttributesOfItemAtPath
- Throws:
NSErrorException
-
getAttributesOfFileSystemAtPath
- Throws:
NSErrorException
-
createSymbolicLinkAtPath
- Throws:
NSErrorException
-
getDestinationOfSymbolicLinkAtPath
- Throws:
NSErrorException
-
copyItemAtPath
- Throws:
NSErrorException
-
moveItemAtPath
- Throws:
NSErrorException
-
linkItemAtPath
- Throws:
NSErrorException
-
removeItemAtPath
- Throws:
NSErrorException
-
copyItemAtURL
- Throws:
NSErrorException
-
moveItemAtURL
- Throws:
NSErrorException
-
linkItemAtURL
- Throws:
NSErrorException
-
removeItemAtURL
- Throws:
NSErrorException
-
trashItemAtURL
- Throws:
NSErrorException- Since:
- Available in iOS 11.0 and later.
-
changeCurrentDirectoryPath
-
fileExists
-
fileExists
-
fileIsReadable
-
fileIsWritable
-
fileIsExecutable
-
fileIsDeletable
-
contentsAtPathEqual
-
getDisplayNameAtPath
-
getComponentsToDisplayForPath
-
getEnumeratorAtPath
-
getEnumeratorAtURL
protected NSDirectoryEnumerator getEnumeratorAtURL(NSURL url, List<NSURLFileSystemProperty> keys, NSDirectoryEnumerationOptions mask, Block2<NSURL,NSError,Boolean> handler) -
getSubpathsAtPath
-
getContentsAtPath
-
createFileAtPath
-
getFileSystemRepresentationForPath
-
getPathForFileSystemRepresentation
-
replaceItemAtURL
public boolean replaceItemAtURL(NSURL originalItemURL, NSURL newItemURL, String backupItemName, NSFileManagerItemReplacementOptions options, NSURL.NSURLPtr resultingURL) throws NSErrorException- Throws:
NSErrorException
-
setUbiquitousItemAtURL
public boolean setUbiquitousItemAtURL(boolean flag, NSURL url, NSURL destinationURL) throws NSErrorException- Throws:
NSErrorException
-
isUbiquitousItemAtURL
-
startDownloadingUbiquitousItemAtURL
- Throws:
NSErrorException
-
evictUbiquitousItemAtURL
- Throws:
NSErrorException
-
getURLForUbiquityContainerIdentifier
-
getURLForPublishingUbiquitousItemAtURL
public NSURL getURLForPublishingUbiquitousItemAtURL(NSURL url, NSDate.NSDatePtr outDate) throws NSErrorException- Throws:
NSErrorException
-
getFileProviderServicesForItemAtURL
public void getFileProviderServicesForItemAtURL(NSURL url, VoidBlock2<NSDictionary<NSString,NSFileProviderService>,NSError> completionHandler)- Since:
- Available in iOS 11.0 and later.
-
getContainerURLForSecurityApplication
-