Build a FileTree
void
__construct
([string $pstrRootPath = ""])
-
string
$pstrRootPath: based path of the listing
Create a new directory
string
createDirectory
(string $pstrPath)
-
string
$pstrPath: The path of the directory to create
Read the content of a file path and returns a JSON object of it
string
download
(string $pstrFilePath)
-
string
$pstrFilePath: directory to read
Read the content of a file path and returns a JSON object of it
string
get
(string $pstrFilePath, [array $pobjArrayFileList = array()], [array $pobjArrayResources = array()])
-
string
$pstrFilePath: Directory to read
-
array
$pobjArrayFileList: Array of files
-
array
$pobjArrayResources: Array of resources
Get file JSON.
string
getFileJSON
(string $pstrPath, string $pstrFile, array $pobjArrayResources)
-
string
$pstrPath: Path of the file
-
string
$pstrFile: Name of the file
-
array
$pobjArrayResources: Array of resources
Get file list.
array
getFileList
(string $pstrFilePath)
-
string
$pstrFilePath: Path of the file
void
getFileUploadErrorMessage
( $piErrorCode)
Returns current uploaded item
array
getUploadedItem
()
Upload a file using current uploaded item.
string
upload
(string $pstrBasePath)
-
string
$pstrBasePath: The bae path of the file to upload.