|
Appspresso Plugin API - iOS
|
#import <AxFileSystem.h>
Public Member Functions | |
| (BOOL) | - onMount:option: |
| (void) | - onUnmount |
| (NSObject< AxFile > *) | - getRoot |
| (NSObject< AxFile > *) | - getFile: |
| (BOOL) | - canRead |
| (BOOL) | - canWrite |
| (NSString *) | - toNativePath: |
| (NSString *) | - toVirtualPath: |
앱스프레소의 가상 파일시스템
| - (BOOL) canRead |
AxFileSystem의 읽기 가능 여부를 반환.
| - (BOOL) canWrite |
AxFileSystem의 쓰기 가능 여부를 반환.
| - (NSObject<AxFile>*) getFile: | (NSString *) | path |
지정한 경로에 해당되는 AxFileSystem의 하위 AxFile을 반환.
| path | relative path to filesystem root(without filesystem prefix) |
| - (BOOL) onMount: | (NSString *) | prefix | |
| option: | (NSDictionary *) | option | |
AxFileSystem이 마운트 되었을 때 호출.
| prefix | prefix for mounted filesystem. similar to mount-point. |
| option | AxFileSystem을 mount하는데 필요한 옵션 |
| - (void) onUnmount |
AxFileSystem이 마운트 해제 되었을 때 호출.
| - (NSString*) toNativePath: | (NSString *) | virtualPath | [optional] |
가상 경로를 실제 파일의 절대 경로로 변환.
| virtualPath | "virtual" path (without the prefix) |
| - (NSString*) toVirtualPath: | (NSString *) | nativePath | [optional] |
실제 파일의 절대 경로를 가상 경로로 변환
NOTE: 물리적인 파일 시스템 기반의 파일시스템만 구현.
| nativePath | "native" path (with the prefix) |