Contract
abstract class Contract
Properties
| protected | $adapter | Default propperty |
|
| protected | $filesystem | ||
| protected | $diskName | ||
| protected | $path | ||
| protected | $error |
Methods
void
directories(string $directoryName = '/')
Retrieve all content of directory
void
makeDirectory(string $directoryName)
Make a directory
bool
isExists(string $path)
Check if file or directory exists or not
void
move(string $from, string $to)
Move file
void
copy(string $from, string $to)
Copy file
void
delete(string $inputPath)
Delete file
void
deleteDirectory(string $path)
Delete directory
void
put(string $path, mixed $content)
Create file
void
putStream(string $path, mixed $content)
Create stream file
void
read(string $path)
Read a file
void
readStream(string $path)
Read a file with stream
lastModified(string $path)
Get last modified
string
getProviderName()
Get class name
getFilesystem()
Get filesystem instance
getDiskName()
Get filesystem instance
void
getPath(string $additionalPath = '')
Get main path
void
getSize(string $path)
Get size of file
getError()
No description
Details
at line 34
void
directories(string $directoryName = '/')
Retrieve all content of directory
at line 45
void
makeDirectory(string $directoryName)
Make a directory
at line 56
bool
isExists(string $path)
Check if file or directory exists or not
at line 68
void
move(string $from, string $to)
Move file
at line 80
void
copy(string $from, string $to)
Copy file
at line 91
void
delete(string $inputPath)
Delete file
at line 102
void
deleteDirectory(string $path)
Delete directory
at line 114
void
put(string $path, mixed $content)
Create file
at line 126
void
putStream(string $path, mixed $content)
Create stream file
at line 137
void
read(string $path)
Read a file
at line 148
void
readStream(string $path)
Read a file with stream
at line 156
lastModified(string $path)
Get last modified
at line 168
abstract object
upload(string $fileToUpload, closure $validation)
Upload
at line 175
string
getProviderName()
Get class name
at line 184
getFilesystem()
Get filesystem instance
at line 192
getDiskName()
Get filesystem instance
at line 202
void
getPath(string $additionalPath = '')
Get main path
at line 213
void
getSize(string $path)
Get size of file
at line 219
getError()
No description