transfer
class transfer
Transfer class, wrapper for ftp/sftp/ssh
Properties
$connection | |||
$host | |||
$port | |||
$username | |||
$password | |||
$timeout | |||
$root_path | |||
$tmp_path | |||
$file_perms | |||
$dir_perms |
Methods
Constructor - init some basic values
Write file to location
Moving file into location. If the destination file already exists it gets overwritten
Create directory structure
Copy file from source location to destination location
Remove file
Remove directory
Rename a file or folder
Check if a specified file exist.
Open session
Close current session
Determine methods able to be used
Details
at line 41
__construct()
Constructor - init some basic values
at line 55
write_file($destination_file = '', $contents = '')
Write file to location
at line 91
overwrite_file($source_file, $destination_file)
Moving file into location. If the destination file already exists it gets overwritten
at line 107
make_dir($dir)
Create directory structure
at line 147
copy_file($from_loc, $to_loc)
Copy file from source location to destination location
at line 167
delete_file($file)
Remove file
at line 180
remove_dir($dir)
Remove directory
at line 192
rename($old_handle, $new_handle)
Rename a file or folder
at line 204
file_exists($directory, $filename)
Check if a specified file exist.
..
at line 224
open_session()
Open session
at line 232
close_session()
Close current session
at line 240
static
methods()
Determine methods able to be used