Skip to content

Commit

Permalink
[README] updated information
Browse files Browse the repository at this point in the history
  • Loading branch information
Unbewohnte committed Nov 10, 2021
1 parent 6ec5eab commit d598b4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Now you have ftu installed !
`ftu [FLAGS]`

### ● FLAGs
- -p [Uinteger_here] for port
- -p [uint] for port
- -r [true|false] for recursive sending of a directory
- -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)
Expand All @@ -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/`
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

`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!

---

## ● Testing

In 'src' directory:

- `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
`make test` or in "src" directory `go test ./...`

---

Expand All @@ -102,8 +98,4 @@ learn so much and get practical experience by simply using http, ftp or whatever
---

## ● License
MIT

## ● TODO
- Send directory
- ~~Wire back encryption~~
MIT
2 changes: 0 additions & 2 deletions src/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ func (node *Node) Start() {
// set current file id to the first file
node.transferInfo.Sending.CurrentFileIndex = 0

// fmt.Printf("[%d] rel path: %s\n", file.ID, file.RelativeParentPath)

filePacket, err := protocol.CreateFilePacket(file)
if err != nil {
panic(err)
Expand Down

0 comments on commit d598b4d

Please sign in to comment.