EOSVolume Class Reference
Inherits from | EOSObject : NSObject |
Declared in | EOSVolume.h EOSVolume.m |
Instance Methods
fileAtIndex:error:
Gets the file that is in the root directory at the specified index.
- (EOSFile *)fileAtIndex:(NSUInteger)index error:(NSError *__autoreleasing *)error
Parameters
- index
The index of the file to get.
- error
If unsuccessful, an instance of NSError describes the problem.
Return Value
If successful, an EOSFile object representing the file, otherwise nil.
Discussion
Use fileCount: to find the valid index range.
Declared In
EOSVolume.h
fileCount:
Gets the number of files that are in the root directory.
- (NSNumber *)fileCount:(NSError *__autoreleasing *)error
Parameters
- error
If unsuccessful, an instance of NSError describes the problem.
Return Value
If successful, the number of files, otherwise nil.
Declared In
EOSVolume.h
files
Gets all of the files that are in the root directory.
- (NSArray *)files
Return Value
An array containing instances of EOSFile.
Discussion
If there is an error retrieving a file, the function will continue without adding it to the array. If you need to check for errors when reteiving each file, use fileAtIndex:error: instead.
Declared In
EOSVolume.h
format:
Formats the volume
- (BOOL)format:(NSError *__autoreleasing *)error
Parameters
- error
If unsuccessful, an instance of NSError will describe the problem.
Return Value
YES if successful, otherwise NO.
Declared In
EOSVolume.h
info:
Gets information about the volume.
- (EOSVolumeInfo *)info:(NSError *__autoreleasing *)error
Parameters
- error
If unsuccessful, an instance of NSError will describe the problem.
Return Value
If successful, a EOSVolumeInfo object, otherwise nil.
Declared In
EOSVolume.h