Skip to content

Commit e665d0c

Browse files
committed
Update FtpClient.md
1 parent a37ce07 commit e665d0c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $connection = new FtpConnection('host', 'foo', '1234');
3838
$connection->open();
3939
```
4040

41-
Create a secure FTP connection
41+
Or create a secure FTP connection
4242
```php
4343
$connection = new FtpSSLConnection('host', 'bar', '1234');
4444
$connection->open();
@@ -129,7 +129,8 @@ $client->createFile('public_html/example.txt');
129129
// create a file with content
130130
$client->createFile('public_html/example.txt', 'Hello world!!');
131131

132-
// get directory size
132+
// create an FTP directory
133+
// note: this method supports recursive directory creation
133134
$client->createDirectory('public_html/assets');
134135
```
135136

@@ -139,7 +140,7 @@ $client->createDirectory('public_html/assets');
139140
// remove an FTP file
140141
$client->removeFile($remoteFile);
141142

142-
// remove a directory (this will remove all the file within the directory)
143+
// remove an FTP directory (be careful all the files within this directory will be removed)
143144
$client->removeDirectory($directory);
144145

145146
// rename an FTP file/directory
@@ -243,7 +244,7 @@ try {
243244

244245
// Close connection
245246
$connection->close();
246-
} catch (FtpClientException $ex) { // Use FtpClientException interface to handle this library exceptions
247+
} catch (FtpClientException $ex) { // Use FtpClientException to catch this library exceptions
247248
echo($ex->getMessage());
248249
}
249250
```

0 commit comments

Comments
 (0)