Methods |
public
|
getRootPath(string $sUserPublicId, string $sType, bool $bUser = false): string|null
|
#
|
public
|
getDirectory(int $sUserPublicId, string $sType, string $sPath = ''): Directory|null
|
#
|
public
|
isFileExists(int $iUserId, string $sType, string $sPath, string $sName, $bWithoutGroup = false): bool
|
#
|
public
|
getFileInfo(
string $sUserPublicId,
string $sType,
object $oItem,
string $sPublicHash = null,
string $sPath = null,
): FileItem|null
|
#
|
public
|
getDirectoryInfo(int $iUserId, string $sType, string $sPath): Directory|null
|
#
|
public
|
getFile(int $iUserId, string $sType, string $sPath, string $sName): File|null
|
#
|
public
|
createPublicLink(int $sUserPublicId, string $sType, string $sPath, string $sName, $sSize, $bIsFolder): string|false
|
#
|
public
|
deletePublicLink(int $iUserId, string $sType, string $sPath, string $sName): bool
|
#
|
public
|
getFiles(
$sUserPublicId,
string $sType = FileStorageType::Personal,
string $sPath = '',
string $sPattern = '',
string $sPublicHash = null,
$bIsShared = false,
): array
|
#
|
public
|
createFolder(int $iUserId, string $sType, string $sPath, string $sFolderName): bool
|
#
|
public
|
createLink(int $iUserId, string $sType, string $sPath, string $sLink, string $sName): bool
|
#
|
public
|
createFile(
int $iUserId,
string $sType,
string $sPath,
string $sFileName,
string $sData,
$rangeType,
$offset,
$extendedProps = [],
): bool
|
#
|
public
|
delete(int $iUserId, string $sType, string $sPath, string $sName): bool
|
#
|
public
|
updateMin(
int $iUserId,
string $sType,
string $sPath,
string $sName,
string $sNewName,
$oItem,
bool $bDelete = false,
): bool
Parameters
$bDelete |
Default value is false.
|
|
#
|
public
|
rename(int $iUserId, string $sType, string $sPath, string $sName, string $sNewName): bool
|
#
|
public
|
renameLink(int $iUserId, string $sType, string $sPath, string $sName, string $sNewName): bool
|
#
|
public
|
copy(
int $sUserPublicId,
string $sFromType,
string $sToType,
string $sFromPath,
string $sToPath,
string $sName,
string $sNewName,
bool $bMove = false,
): bool
Parameters
$bMove |
Default value is false.
|
Overrides
|
#
|
public
|
getUserSpaceUsed(int $iUserId, array $aTypes)
Returns user used space in bytes for specified storages.
Returns user used space in bytes for specified storages.
Parameters
$iUserId |
User identifier.
|
$aTypes |
Storage type list. Accepted values in array: \Aurora\System\Enums\FileStorageType::Personal, \Aurora\System\Enums\FileStorageType::Corporate, \Aurora\System\Enums\FileStorageType::Shared.
|
|
#
|
public
|
getNonExistentFileName(Account $oAccount, int $iType, string $sPath, string $sFileName, $bWithoutGroup = false): string
|
#
|
public
|
clearPrivateFiles(int $iUserId)
|
#
|
public
|
clearCorporateFiles(int $iUserId)
|
#
|