-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonas Quinten
committed
Mar 7, 2023
1 parent
0be5126
commit b9b932d
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Remotes | ||
- [Sftp File](sftp-file.md) | ||
- [Sftp File](sftp-file.md) | ||
- [Ftp File](ftp-file.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Ftp File | ||
Class: [FtpFile](/src/Remote/FtpFile.php) | ||
|
||
## Difference to Base File | ||
### Ftp File creation | ||
```php | ||
use Ambimax\File\Remote\FtpFile; | ||
use Ambimax\File\FileMode; | ||
|
||
$ftoFile = new FtpFile( | ||
hostname: 'example.com', | ||
username: 'user', | ||
password: 'password123', | ||
filePath: 'foo/bar/baz.txt', | ||
mode: FileMode::R, | ||
overwrite: true // optional, default = false | ||
); | ||
``` | ||
|
||
### Rename/Move | ||
The implementation of rename and move of FtpFile do not reopen the file. |