AirLay backend

FilesystemHelper
in package

Table of Contents

copyDirectoryFromLocal()  : void
copyFromLocal()  : void
copyToTmpFile()  : TmpFile
deleteDirectory()  : void
deleteFile()  : void
deleteFiles()  : void
removeLocalDirectory()  : bool
Remove directory, which may contain files and other directories.
saveBinary()  : void

Methods

copyDirectoryFromLocal()

public static copyDirectoryFromLocal(string $localPath, Filesystem $filesystem, string $filesystemPath) : void
Parameters
$localPath : string
$filesystem : Filesystem
$filesystemPath : string
Return values
void

copyFromLocal()

public static copyFromLocal(string $localPath, Filesystem $filesystem, string $filesystemPath) : void
Parameters
$localPath : string
$filesystem : Filesystem
$filesystemPath : string
Return values
void

copyToTmpFile()

public static copyToTmpFile(Filesystem $filesystem, string $path) : TmpFile
Parameters
$filesystem : Filesystem
$path : string
Tags
throws
FilesystemException
Return values
TmpFile

deleteDirectory()

public static deleteDirectory(Filesystem $filesystem, string $dirname) : void
Parameters
$filesystem : Filesystem
$dirname : string
Return values
void

deleteFile()

public static deleteFile(Filesystem $filesystem, string $filesystemPath) : void
Parameters
$filesystem : Filesystem
$filesystemPath : string
Tags
throws
FilesystemException
Return values
void

deleteFiles()

public static deleteFiles(Filesystem $filesystem, array<string|int, mixed> $filePaths) : void
Parameters
$filesystem : Filesystem
$filePaths : array<string|int, mixed>
Return values
void

removeLocalDirectory()

Remove directory, which may contain files and other directories.

public static removeLocalDirectory(string $localPath) : bool
Parameters
$localPath : string
Return values
bool

saveBinary()

public static saveBinary(Filesystem $filesystem, string $data, string $path) : void
Parameters
$filesystem : Filesystem
$data : string
$path : string
Tags
throws
FilesystemException
Return values
void

Search results