GithubHelp home page GithubHelp logo

arianneroselina / iphone-photos-backup-tool Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Filter unnecessary files for backup and make sure there are no duplicates in other directories

Python 100.00%

iphone-photos-backup-tool's Introduction

Iphone Photos Backup Tool

Iphone Photos Backup Tool is a Python script designed to clean up files in a specified directory based on certain criteria. It deletes

  1. files with unallowed file extensions,
  2. files containing "_E" in their names,
  3. JPEG/JPG files if a HEIC file with the same name and "Date taken" metadata exists in the same directory,
  4. files that already exist in another directory (recursively) while comparing their file name and "Date taken" metadata,

Permitted file extensions are '.heic', '.jpg', '.jpeg', '.png', '.mov', '.mp4'.

Requirements

  • Python 3
  • exifread < 3

Installation

  1. Clone or download the repository to your local machine:

    git clone https://github.com/arianneroselina/IphonePhotosBackupTool.git
  2. Install dependencies using pip:

    python -m pip install "exifread<3"

Usage

python filter_files.py current_dir [other_dir]
  • current_dir: Path to the directory containing the files to clean.
  • other_dir (optional): Path to the directory for comparison.

If only current_dir is provided, the tool will clean up files in current_dir according to the specified criteria 1-3. If both current_dir and other_dir are provided, the tool will also compare files between the two directories.

Example

# Clean up files in current_dir only
python filter_files.py "iPhone\202312__"

# Clean up files in current_dir and compare with other_dir (recursively)
python filter_files.py "iPhone\202312__" "Pictures"

iphone-photos-backup-tool's People

Contributors

arianneroselina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.