transfer
public class transfer
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| Method Summary | |
|---|---|
| void | Constructor - init some basic values |
| void | Close current session |
| void | copy_file(mixed from_loc, mixed to_loc) Copy file from source location to destination location |
| void | delete_file(mixed file) Remove file |
| void | file_exists(mixed directory, mixed filename) Check if a specified file exist... |
| void | make_dir(mixed dir) Create directory structure |
| void | methods() Determine methods able to be used |
| void | Open session |
| void | overwrite_file(mixed source_file, mixed destination_file) Moving file into location. |
| void | remove_dir(mixed dir) Remove directory |
| void | rename(mixed old_handle, mixed new_handle) Rename a file or folder |
| void | write_file(str destination_file, str contents) Write file to location |
public mixed $connection = false
public mixed $dir_perms
public mixed $file_perms
public mixed $host
public mixed $password
public mixed $port
public mixed $root_path
public mixed $timeout
public mixed $tmp_path
public mixed $username
public void __construct()
Constructor - init some basic values
public void close_session()
Close current session
public void copy_file(mixed from_loc, mixed to_loc)
Copy file from source location to destination location
public void delete_file(mixed file)
Remove file
public void file_exists(mixed directory, mixed filename)
Check if a specified file exist...
public void make_dir(mixed dir)
Create directory structure
public void methods()
Determine methods able to be used
public void open_session()
Open session
public void overwrite_file(mixed source_file, mixed destination_file)
Moving file into location. If the destination file already exists it gets overwritten
public void remove_dir(mixed dir)
Remove directory
public void rename(mixed old_handle, mixed new_handle)
Rename a file or folder
public void write_file(str destination_file, str contents)
Write file to location
Transfer class, wrapper for ftp/sftp/ssh