Storage
class Storage (View source)
Methods
Get absolute path from storage location
Convert path to storage path
Clear old files in a folder from storage path
Create a tmp in storage/tmp folder
Create a file in a folder or overwrite existing file
Create a file in a folder in storage or append data to existing file
Delete a file in storage
Create a folder in storage using 0700 permission (if unix-like)
Remove recursive folders in storage folder
Details
at line 19
static string
path()
Get absolute path from storage location
at line 30
static bool|string
resolve(string $path)
Convert path to storage path
at line 53
static void
autoclean(string $path, int $time = -1)
Clear old files in a folder from storage path
at line 85
static bool|string
temp($data = null, $dir = 'tmp', $prefix = '~', $sulfix = '.tmp')
Create a tmp in storage/tmp folder
at line 120
static bool
write(string $path, string $data = null)
Create a file in a folder or overwrite existing file
at line 133
static bool
put(string $path, string $data = null, int $flags = null)
Create a file in a folder in storage or append data to existing file
at line 160
static bool
remove(string $path)
Delete a file in storage
at line 173
static bool
createFolder(string $path)
Create a folder in storage using 0700 permission (if unix-like)
at line 186
static bool
removeFolder(string $path)
Remove recursive folders in storage folder