Appspresso Plugin API - iOS
<AxFileSystem> Protocol Reference

#import <AxFileSystem.h>

Inheritance diagram for <AxFileSystem>:
DefaultFileSystem

Public Member Functions

(BOOL) - onMount:option:
(void) - onUnmount
(NSObject< AxFile > *) - getRoot
(NSObject< AxFile > *) - getFile:
(BOOL) - canRead
(BOOL) - canWrite
(NSString *) - toNativePath:
(NSString *) - toVirtualPath:

Detailed Description

앱스프레소의 가상 파일시스템

Author:
iolo
Version:
1.0

Member Function Documentation

- (BOOL) canRead

AxFileSystem의 읽기 가능 여부를 반환.

Returns:
읽기 가능하면 YES, 아닐 경우 NO
- (BOOL) canWrite

AxFileSystem의 쓰기 가능 여부를 반환.

Returns:
쓰기 가능하면 YES, 아닐 경우 NO
- (NSObject<AxFile>*) getFile: (NSString *)  path

지정한 경로에 해당되는 AxFileSystem의 하위 AxFile을 반환.

Parameters:
pathrelative path to filesystem root(without filesystem prefix)
Returns:
AxFile. 해당되는 AxFile이 존재하지 않을 시 nil.
- (NSObject<AxFile>*) getRoot

AxFileSystem의 root가 되는 AxFile을 반환.

Returns:
root AxFile
- (BOOL) onMount: (NSString *)  prefix
option: (NSDictionary *)  option 

AxFileSystem이 마운트 되었을 때 호출.

Parameters:
prefixprefix for mounted filesystem. similar to mount-point.
optionAxFileSystem을 mount하는데 필요한 옵션
Returns:
마운트에 성공하면 YES, 실패시 NO
- (void) onUnmount

AxFileSystem이 마운트 해제 되었을 때 호출.

- (NSString*) toNativePath: (NSString *)  virtualPath [optional]

가상 경로를 실제 파일의 절대 경로로 변환.

Parameters:
virtualPath"virtual" path (without the prefix)
Returns:
"native" path (with the prefix)
- (NSString*) toVirtualPath: (NSString *)  nativePath [optional]

실제 파일의 절대 경로를 가상 경로로 변환

NOTE: 물리적인 파일 시스템 기반의 파일시스템만 구현.

Parameters:
nativePath"native" path (with the prefix)
Returns:
"virtual" path (with the prefix)
 All Data Structures Functions