ftp-client
FTP Client - Crystal
Simple FTP Client implementtation in Crystal
Installation
-
Add the dependency to your
shard.yml
:dependencies: ftp-client: github: taufikmaulanaa/ftp-client
-
Run
shards install
Usage
require "ftp-client"
Example:
require "ftp-client"
# Contoh penggunaan:
puts "Connection";
ftp = FTPClient.new("localhost")
ftp.login("ftp-taufik", "p455w0rd")
puts "Upload File";
ftp.upload("./src/local_file.txt", "remote.txt")
puts "Download File";
ftp.download("remote.txt", "./src/local_copy.txt")
puts "List File";
puts ftp.list_files
ftp.delete("remote.txt")
ftp.close
Contributing
- Fork it (https://github.com/taufikmaulanaa/ftp-client/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Taufik - creator and maintainer
Repository
ftp-client
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- 3 months ago
- February 19, 2025
License
MIT License
Links
Synced at
Fri, 30 May 2025 09:49:47 GMT
Languages