Browse Source

[README] updated information

main 2.0.0
Unbewohnte 3 years ago
parent
commit
d598b4d1e7
  1. 18
      README.md
  2. 2
      src/node/node.go

18
README.md

@ -49,7 +49,7 @@ Now you have ftu installed !
`ftu [FLAGS]` `ftu [FLAGS]`
### ● FLAGs ### ● FLAGs
- -p [Uinteger_here] for port - -p [uint] for port
- -r [true|false] for recursive sending of a directory - -r [true|false] for recursive sending of a directory
- -a [ip_address|domain_name] address to connect to (cannot be used with -s) - -a [ip_address|domain_name] address to connect to (cannot be used with -s)
- -d [path_to_directory] where the files will be downloaded to (cannot be used with -s) - -d [path_to_directory] where the files will be downloaded to (cannot be used with -s)
@ -67,21 +67,17 @@ creates a node that will connect to 192.168.1.104:7277 and download served file|
`ftu -p 7277 -a 192.168.1.104 -d /home/user/Downloads/` `ftu -p 7277 -a 192.168.1.104 -d /home/user/Downloads/`
creates a node that will connect to 192.168.1.104:7277 and download served file|directory to "/home/user/Downloads/" creates a node that will connect to 192.168.1.104:7277 and download served file|directory to "/home/user/Downloads/"
`ftu -s /home/user/homework` (TODO) `ftu -s /home/user/homework`
creates a node that will send every file in the directory creates a node that will send every file in the directory
`ftu -r -s /home/user/homework/` (TODO) `ftu -r -s /home/user/homework/`
creates a node that will send every file in the directory !RECUSRIVELY! creates a node that will send every file in the directory !RECUSRIVELY!
--- ---
## ● Testing ## ● Testing
In 'src' directory: `make test` or in "src" directory `go test ./...`
- `go test ./...` - to test everything
- `go test -v ./...` - to test everything, with additional information
- `go test ./NAME_OF_THE_PACKAGE` - to test a certain package
--- ---
@ -102,8 +98,4 @@ learn so much and get practical experience by simply using http, ftp or whatever
--- ---
## ● License ## ● License
MIT MIT
## ● TODO
- Send directory
- ~~Wire back encryption~~

2
src/node/node.go

@ -315,8 +315,6 @@ func (node *Node) Start() {
// set current file id to the first file // set current file id to the first file
node.transferInfo.Sending.CurrentFileIndex = 0 node.transferInfo.Sending.CurrentFileIndex = 0
// fmt.Printf("[%d] rel path: %s\n", file.ID, file.RelativeParentPath)
filePacket, err := protocol.CreateFilePacket(file) filePacket, err := protocol.CreateFilePacket(file)
if err != nil { if err != nil {
panic(err) panic(err)

Loading…
Cancel
Save