Skip to content

Commit

Permalink
feat: added Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Quinten committed Mar 7, 2023
1 parent 0be5126 commit b9b932d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/remotes/README.md
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)
21 changes: 21 additions & 0 deletions docs/remotes/ftp-file.md
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.

0 comments on commit b9b932d

Please sign in to comment.