Skip to content

Proyect client/server to upload, download and list files from a server.

Notifications You must be signed in to change notification settings

JGaviria0/FileServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File server

Este proyecto esta desarrollado para la materia de Arquitectura cliente servidor de la Universidad Tecnológica de Pereira, el objetivo es subir y descargar cualquier tipo de archivo.

Run Locally

Clone the project

  git clone https://github.com/JGaviria0/FileServer

Go to the project directory

  cd FileServer

Install dependencies

  pip3 install -r requirements.txt

Start the Server

  cd Server
  python3 Server.py

Start the Nodes

  cd Node
  python3 Node.py [Server IP] [Server port] 

Run the client, open other terminal

  • List

    python3 Client/Client.py [Server IP] [Server port] list 
  • Download

    python3 Client/Client.py [Server IP] [Server port] download [file name] 
  • Upload

    python3 Client/Client.py [Server IP] [Server port] upload [file name] 

Examples

  • List

    python3 Client/Client.py 192.168.1.1 5555 list 
  • Download

    python3 Client/Client.py 192.168.1.1 5555 download Test.txt
  • Upload

    python3 Client/Client.py 192.168.1.1 5555 upload Test.txt

.env

BUF_SIZE=65536 #64KB on memory
PRINCIPAL_PATH='./../'
UPLOAD_TYPE='upload'
DOWNLOAD_TYPE='download'
SUBSCRIPTION_TYPE='subscrition'
LIST_TYPE='list'
MAIN_DIRECTORY='./Files/'

About

Proyect client/server to upload, download and list files from a server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages