/django-file-manager

manage your file with a django app. It can remove the duplicate file

Primary LanguagePythonMIT LicenseMIT

django-file-manager

manage your file with a django app. It can remove the duplicate file, and backup your file

Features

  • backup multi directory
  • delete duplicate file(by md5)

Concept

Object

Any file or directory is an object in database

RootFolder

specific which folder should this project scan

Bucket

a bucket means an isolate file storage.

Usage

download

git clone git@github.com:ramwin/django-file-manager.git
cd django-file-manager
pip install -r ./requirements.txt
python3 manage.py migrate

init a folder

python3 manage.py init_folder <your directory>
python3 manage.py init_folder <another directory>  # you can add multi foler

scan file in folder, store info in File model

python3 manage.py scan_folder

add md5 to file (who has same size)

python3 manage.py update_md5_in_need

delete duplicate file

python3 manage.py delete_duplicate --no-act # check before you delete your file
python3 manage.py delete_duplicate