FileSystem Class
This class operates the file system of the client PC.
Default properties and ValueType
The default property is PathName. The ValueType specification is invalid.
Virtual file name
The FileSystem class treats file names as virtual file names. A virtual file name is a file name with limited access range that maps a specific folder as the root folder. Only files under the root folder are accessible, and not all files on your computer can be accessed directly without your permission. The folder that maps to the root folder depends on the attributes (public, private) that you specify when initializing the FileSystem object.
The format of virtual filenames is similar to the Windows file system, except that files and folders are separated by “/” (slashes).
The virtual file name is treated as a relative path with respect to the current folder. If you specify an absolute path starting with “/”, it will be treated as an absolute path from the root folder regardless of the current folder. In the initial state, the current folder points to the root folder. The current folder can be obtained with the PathName property and can be changed with the ChangeDir method.
(Example)
(Root Folder)
├ file1.txt ・・・ (1)
└ folder1 ・・・ (2)
├ file2.txt ・・・ (3)
└ folder2 ・・・ (4)
; └ file3.txt ・・・ (5)
| Current Folder | Relative Path | Absolute Path | |
| (1) | / | file1.txt | /file1.txt |
| /folder1 | ../file1.txt | ||
| /folder1/folder2 | ../../file1.txt | ||
| (2) | / | folder1 | /folder1 |
| /folder1 | . | ||
| /folder1/folder2 | .. | ||
| (3) | / | folder1/file2.txt | /folder1/file2.txt |
| /folder1 | file2.txt | ||
| /folder1/folder2 | ../file2.txt | ||
| (4) | / | folder1/folder2 | folder1/folder2 |
| /folder1 | folder2 | ||
| /folder1/folder2 | . | ||
| (5) | / | folder1/folder2/file3.txt | /folder1/folder2/file3.txt |
| /folder1 | folder2/file3.txt | ||
| /folder1/folder2 | file3.txt |
Public attributes
The FileSystem object with the public attribute specified in the constructor maps the following folders as the root folder.
| OS | Root folder |
|---|---|
| Windows Vista or later | C: \ users \ (user name) \ AppData \ Roaming \ AXIS Soft \ BizBrowser \ root |
| Windows XP Windows 2000 | C: \ Documents and Settings \ (username) \ Application Data \ AXIS Soft \ BizBrowser \ root |
| Windows NT | C: \ WINNT \ Profiles \ (username) \ Application Data \ AXIS Soft \ BizBrowser \ root |
| Windows Me Windows 98 (In case of individual user settings) | C: \ Windows \ Profiles \ (username) \ Application Data \ AXIS Soft \ BizBrowser \ root |
| Windows Me Windows 98 (When setting common to all users) | C: \ Windows \ Application Data \ AXIS Soft \ BizBrowser \ root |
| Windows CE Windows Mobile | (Installation folder) \ users \ default \ root or \ Windows \ Profiles \ guest \ Application Data \ AXIS Soft \ BizBrowser \ root |
| Android OS | /sdcard/Android/data/jp.co.axissoft.biz/files/filesystem/root |
Changed from “AXIS Soft” to “AXIS SOFT” (no space) since Version 5.0.0, Mobile Version 4.0.0
Folders mapped with public attributes are common to all CRS applications, so files can be shared between multiple CRS applications, but filename conflicts and illegal file content can be referenced.
Private attributes
A FileSystem object with a private attribute in the constructor maps the following folders to the root folder.
| OS | Root Folder |
|---|---|
| Windows Vista or later | C: \ users \ (user name) \ AppData \ Roaming \ AXIS Soft \ BizBrowser \ private_root \ (server name) |
| Windows XP Windows 2000 | C: \ Documents and Settings \ (username) \ Application Data \ AXIS Soft \ BizBrowser \ private_root \ (server name) |
| Windows NT | C: \ WINNT \ Profiles \ (user name) \ Application Data \ AXIS Soft \ BizBrowser \ private_root \ (server name) |
| Windows Me Windows 98 (In case of individual user settings) | C: \ Windows \ Profiles \ (user name) \ Application Data \ AXIS Soft \ BizBrowser \ private_root \ (server name) |
| Windows Me Windows 98 (When setting common to all users) | C: \ Windows \ Application Data \ AXIS Soft \ BizBrowser \ private_root \ (server name) |
| Windows CE Windows Mobile | (Installation folder) \ users \ default \ private_root \ (server name) or \ Windows \ Profiles \ guest \ Application Data \ AXIS Soft \ BizBrowser \ private_root \ (server name) |
| Android OS | /data/data/jp.co.axissoft.biz/files/filesystem/private_root/ (server name) AI: This directory can only be accessed by Biz / Browser AI. |
Changed from “AXIS Soft” to “AXIS SOFT” (no space) for Version 5.0.0, Mobile Version 4.0.0
Folders that are mapped with private attributes contain the name of the server that downloaded the CRS application, so you can manage files individually for each server. It cannot be accessed from a CRS program downloaded from another server. In addition, the FileSystem object with the private attribute can mount any folder allowed by the user with the Mount method to the virtual file name.
Access outside the root folder
There are the following ways to access any file other than the root folder.
-
Open a specific file selected by the user by the OpenDialog method and SaveDialog method.
-
Mount the folder allowed by the user with the Mount method to the virtual file name (in the case of private attribute)