ftp-client

Simple FTP Client implementtation in Crystal

FTP Client - Crystal

Simple FTP Client implementtation in Crystal

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      ftp-client:
        github: taufikmaulanaa/ftp-client
    
  2. 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

  1. Fork it (https://github.com/taufikmaulanaa/ftp-client/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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