Skip to content

DysonMa/FileBrowserManager

Repository files navigation

FileBrowser Manager

This is an example to display how to use RESTful API to execute CRUD operations, such as uploading files, download files, create remote folder, login, ... in File Browser, which is a popular open source web file explorer.

Provide simple CRUD of FileBrowser operations in Python, and simply profile the uploading performance with sequential and concurrent manners.

  • Python: v3.9.5
  • FileBrowser Docker Image: v2.23.0

Modules

The lib folder contains all the definitions for RESTful API operations. Feel free to incorporate it into your project, and any contribution is also welcome!

Steps

  1. First, run run.sh to start the FileBrowser docker container
  2. Config the environment variables in .env
  3. Move your large files such as SVGs or videos to /test_data/large_files folder
  4. Run test_fb.py, it will automatically create a new folder named TEST in FileBrowser root directory, and execute some CRUD and uploading operations to test the processing flow
  5. Run profile_performance.py to see how much time does the FileBrowser take to upload large files

Experimental Result

Test 440 SVG files with total 1.5GB size, and it takes 20 seconds to uploading in sequential manner, and 14 seconds to uploading in concurrent manner.

About

RESTful API of CRUD in FileBrowser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published