public class NSFileManager extends NSObject
Modifier and Type | Method and Description |
---|---|
List<String> |
contentsOfDirectoryAtPath(String path,
crossmobile.rt.StrongReference<NSError> error)
Returns a list of contents of the file at the specified path.
|
boolean |
createDirectoryAtPath(String path,
boolean createIntermediates,
Map<String,String> attributes,
crossmobile.rt.StrongReference<NSError> error)
Creates a directory at the specified path with the specified parameters
values.
|
static NSFileManager |
defaultManager()
Constructs and returns the default instance of this class that is a
static reference to the singleton NSFileManger.
|
boolean |
fileExistsAtPath(String path)
Returns a Boolean that shows whether the specified path is valid.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static NSFileManager defaultManager()
public boolean fileExistsAtPath(String path)
path
- The path that is examined.public boolean createDirectoryAtPath(String path, boolean createIntermediates, Map<String,String> attributes, crossmobile.rt.StrongReference<NSError> error)
path
- The path of the directory.createIntermediates
- TRUE creates the missing parent directories ,
FALSE it fails if parent directories are missing.attributes
- The file attributes of the directory.error
- The callback errorpublic List<String> contentsOfDirectoryAtPath(String path, crossmobile.rt.StrongReference<NSError> error)
path
- The path of the file.error
- The error returned in case of failure.Copyright © 2020. All rights reserved.