github.com/dallinallred/goftp@v0.0.0-20240626003405-61936bc079f1/README.md (about)

     1  # Introduction
     2  
     3  This is simple FTP-like server and client created as a practice exercise in Go.
     4  
     5  # Usage
     6  ## Server
     7  ```sh
     8  go run server/ftpServer.go -p <port>
     9  # Default port: 2020
    10  ```
    11  
    12  ## Client
    13  ```sh
    14  go run server/ftpClient.go -h <host> -p <port>
    15  # Default host: localhost
    16  # Default port: 2020
    17  ```
    18  ### Client Commands
    19  #### Local
    20  ```sh
    21  lcd directory # Change local working directory
    22  lls <directory> # List contents of local working directory or, optionally, specify an alternate directory
    23  lpwd # Print the local working directory
    24  ```
    25  
    26  #### Remote
    27  ```sh
    28  cd directory # Change remote working directory
    29  ls <directory> # List contents of remote working directory or, optionally, specify an alternate directory
    30  lpwd # Print the remote working directory
    31  exit # Terminates client
    32  ```
    33  
    34  #### File Transfer*
    35  
    36  ```sh
    37  get filename # Copies a file from the server to the client
    38  put filename # Sends a file from the client to the server
    39  ```
    40  <span style="color: orange">* Functionality Pending</span>