Mobile API Reference  MicroStrategy 2019
FileUtils Class Reference

#import <FileUtils.h>

Inheritance diagram for FileUtils:

Class Methods

(NSString *) + documentDirectory
 
(NSString *) + cachesDirectory
 
(NSString *) + libraryDirectory
 
(NSString *) + tempDirectory
 
(NSData *) + readDataAtPath:error:
 
(size_t) + readData:atPath:offset:length:error:
 
(size_t) + readDataInBuffer:atPath:offset:length:error:
 
(NSInteger) + writeData:atPath:error:
 
(NSInteger) + deleteDataAtPath:error:
 
(NSInteger) + appendData:atPath:error:
 
(void) + clearTmpDirectory
 
(BOOL+ setAttributes:ofItemAtPath:error:
 
(NSDictionary *) + attributesOfItemAtPath:error:
 
(BOOL+ fileExistsAtPath:
 
(BOOL+ fileExistsAtPath:isDirectory:
 
(NSArray *) + contentsOfDirectoryAtPath:error:
 
(BOOL+ removeItemAtPath:error:
 
(BOOL+ createDirectoryAtPath:withIntermediateDirectories:attributes:error:
 
(BOOL+ createFileAtPath:contents:attributes:
 
(NSInteger) + moveItemAtPath:toPath:error:
 
(NSInteger) + copyItemAtPath:toPath:error:
 
(void) + waitUntilUnlockOperationIsFinished
 
(NSOutputStream *) + newOutputStreamToFileAtPath:append:
 
(NSInputStream *) + newInputStreamWithFileAtPath:
 
(void) + writeDictionary:toFileAtPath:
 
(NSDictionary *) + dictionaryAtFilePath:
 
(NSString *) + mimeTypeForFileAtPath:
 
(NSArray *) + subpathsAtPath:
 
(BOOL+ isMappedFileSupported
 
(NSData *) + readDataWithNoProtectionAtPath:error:encrypt:
 
(NSInteger) + writeDataWithNoProtection:atPath:error:encrypt:
 
(NSInteger) + appendDataWithNoProtection:atPath:error:encrypt:
 
(long long) + decryptDataAtPath:
 
(void) + stopAllFileOperations
 
(void) + startAllFileOperations
 
(size_t) + incrementalDecryptSoftwareEncryptedDataAtPath:
 
(NSString *) + decryptedExternalFileForFileAtPath:
 
(void) + removeDecryptedFileForFile:
 

Method Documentation

◆ appendData:atPath:error:()

+ (NSInteger) appendData: (NSData *)  data
atPath: (NSString *)  path
error: (NSError **)  error 

◆ appendDataWithNoProtection:atPath:error:encrypt:()

+ (NSInteger) appendDataWithNoProtection: (NSData *)  data
atPath: (NSString *)  path
error: (NSError **)  error
encrypt: (bool)  encrypt 

◆ attributesOfItemAtPath:error:()

+ (NSDictionary *) attributesOfItemAtPath: (NSString *)  path
error: (NSError **)  error 

◆ cachesDirectory()

+ (NSString*) cachesDirectory

◆ clearTmpDirectory()

+ (void) clearTmpDirectory

◆ contentsOfDirectoryAtPath:error:()

+ (NSArray*) contentsOfDirectoryAtPath: (NSString *)  path
error: (NSError **)  error 

◆ copyItemAtPath:toPath:error:()

+ (NSInteger) copyItemAtPath: (NSString *)  path
toPath: (NSString *)  toPath
error: (NSError **)  error 

◆ createDirectoryAtPath:withIntermediateDirectories:attributes:error:()

+ (BOOL) createDirectoryAtPath: (NSString *)  path
withIntermediateDirectories: (BOOL createIntermediates
attributes: (NSDictionary *)  attributes
error: (NSError **)  error 

◆ createFileAtPath:contents:attributes:()

+ (BOOL) createFileAtPath: (NSString *)  path
contents: (NSData *)  contents
attributes: (NSDictionary *)  attributes 

◆ decryptDataAtPath:()

+ (long long) decryptDataAtPath: (NSString *)  path

◆ decryptedExternalFileForFileAtPath:()

+ (NSString *) decryptedExternalFileForFileAtPath: (NSString *)  encryptedFilePath

◆ deleteDataAtPath:error:()

+ (NSInteger) deleteDataAtPath: (NSString *)  path
error: (NSError **)  error 

◆ dictionaryAtFilePath:()

+ (NSDictionary*) dictionaryAtFilePath: (NSString *)  filePath

◆ documentDirectory()

+ (NSString*) documentDirectory

◆ fileExistsAtPath:()

+ (BOOL) fileExistsAtPath: (NSString *)  path

◆ fileExistsAtPath:isDirectory:()

+ (BOOL) fileExistsAtPath: (NSString *)  path
isDirectory: (BOOL *)  isDirectory 

◆ incrementalDecryptSoftwareEncryptedDataAtPath:()

+ (size_t) incrementalDecryptSoftwareEncryptedDataAtPath: (NSString *)  path

◆ isMappedFileSupported()

+ (BOOL) isMappedFileSupported

◆ libraryDirectory()

+ (NSString*) libraryDirectory

◆ mimeTypeForFileAtPath:()

+ (NSString *) mimeTypeForFileAtPath: (NSString *)  path

◆ moveItemAtPath:toPath:error:()

+ (NSInteger) moveItemAtPath: (NSString *)  path
toPath: (NSString *)  toPath
error: (NSError **)  error 

◆ newInputStreamWithFileAtPath:()

+ (NSInputStream*) newInputStreamWithFileAtPath: (NSString *)  filePath

◆ newOutputStreamToFileAtPath:append:()

+ (NSOutputStream*) newOutputStreamToFileAtPath: (NSString *)  filePath
append: (BOOL append 

◆ readData:atPath:offset:length:error:()

+ (size_t) readData: (void *)  dataBuf
atPath: (NSString *)  path
offset: (long)  offset
length: (size_t)  length
error: (NSError **)  error 

◆ readDataAtPath:error:()

+ (NSData*) readDataAtPath: (NSString *)  path
error: (NSError **)  error 

◆ readDataInBuffer:atPath:offset:length:error:()

+ (size_t) readDataInBuffer: (void **)  dataBuf
atPath: (NSString *)  path
offset: (long)  offset
length: (size_t)  length
error: (NSError **)  error 

◆ readDataWithNoProtectionAtPath:error:encrypt:()

+ (NSData*) readDataWithNoProtectionAtPath: (NSString *)  path
error: (NSError **)  error
encrypt: (bool)  encrypt 

◆ removeDecryptedFileForFile:()

+ (void) removeDecryptedFileForFile: (NSString *)  file

◆ removeItemAtPath:error:()

+ (BOOL) removeItemAtPath: (NSString *)  path
error: (NSError **)  error 

◆ setAttributes:ofItemAtPath:error:()

+ (BOOL) setAttributes: (NSDictionary *)  attributes
ofItemAtPath: (NSString *)  path
error: (NSError **)  error 

◆ startAllFileOperations()

+ (void) startAllFileOperations

◆ stopAllFileOperations()

+ (void) stopAllFileOperations

◆ subpathsAtPath:()

+ (NSArray*) subpathsAtPath: (NSString *)  path

◆ tempDirectory()

+ (NSString*) tempDirectory

◆ waitUntilUnlockOperationIsFinished()

+ (void) waitUntilUnlockOperationIsFinished

◆ writeData:atPath:error:()

+ (NSInteger) writeData: (NSData *)  data
atPath: (NSString *)  path
error: (NSError **)  error 

◆ writeDataWithNoProtection:atPath:error:encrypt:()

+ (NSInteger) writeDataWithNoProtection: (NSData *)  data
atPath: (NSString *)  path
error: (NSError **)  error
encrypt: (bool)  encrypt 

◆ writeDictionary:toFileAtPath:()

+ (void) writeDictionary: (NSDictionary *)  dictionary
toFileAtPath: (NSString *)  filePath