Skip to content

Golang utility that lists all the files in the directory you choose. Starts a TCP server that allows you to send the directory as a message, and responds with the the files within the directory.

Notifications You must be signed in to change notification settings

afranco07/FileLister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Golang File Lister

file-lister-demo

A utility written in Go that lists all of the files within the directory you pass to it.

This utility starts a TCP server.

Running the Application

  1. Download the binary under the Releases tab and execute it with ./golang_file_lister_1.0.0
  2. You can send strings using the printf command in the terminal i.e.:
printf "/usr/local/bin" | nc localhost 8080
  1. You should see a response in the terminal

OR

  1. Clone this repo
  2. Run go run main.go
  3. The application should have started and you shoud see Starting server on port 8080 (localhost)...
  4. You can send strings using the printf command in the terminal i.e.:
printf "/usr/local/bin" | nc localhost 8080
  1. You should see a response in the terminal

Running Tests

To run the tests run:

go test

Build Binary File

This file is already included under the Releases tab, but if you'd like to build it yourself you can do:

go build main.go

About

Golang utility that lists all the files in the directory you choose. Starts a TCP server that allows you to send the directory as a message, and responds with the the files within the directory.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages