Skip to main content

Local file updater

Project description

Local file updater

A package that allows to backup local files to a specific directory and update already backuped files if they were modified

Install

pip install file-updater

Console script

lofup.py [Source path] [Destination path] (optional: Path to .fupignore or .fupinclude file)

Example:

sample_1

How to use in code

from fup.updater import FileUpdater

file_updater = FileUpdater(output_console=True)

file_updater.update_files(
    path_source=r'C:\Users\riffe\schule\5.klasse\pos\docs', 
    path_dest=r'C:\Users\riffe\spare\programming\file-update-testfolder')

Ignore or include files

You can also ignore or include files by providing a full or relative path to a .fupignore or .fupinclude file. If you specify a .fupignore file, all files will be included by default except files that are affected by the .fupignore file. However, if you specify a .fupinclude file, all files will be ignored by default.

from fup.updater import FileUpdater

file_updater = FileUpdater(output_console=True, fup_file_path=r'C:\Temp\.fupignore.txt')

Example for such a file:


# full paths
c:\Temp\From\text4.docx
c:\Temp\From\sub

# relative paths (need to have exclamation mark at the start of the line)
!sub\text3.docx

# ignore or include certain file extensions
*.txt

# ignore or include general files or directories
*file_1.txt
*sample_dir

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file-updater-0.0.8.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_updater-0.0.8-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file file-updater-0.0.8.tar.gz.

File metadata

  • Download URL: file-updater-0.0.8.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0

File hashes

Hashes for file-updater-0.0.8.tar.gz
Algorithm Hash digest
SHA256 66890490d8d5c603cdd210272892d2befd0c437c349c2ef2ac2f6bb7bdadf4aa
MD5 3ce3f34341431c8b4b3fc9d05d212657
BLAKE2b-256 3318ffe61702f1470946ab88e70aaf82632a9a8ba7a6db9e204034aa99928b97

See more details on using hashes here.

File details

Details for the file file_updater-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: file_updater-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0

File hashes

Hashes for file_updater-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8510adbe4c43db3fc686b19979b1ec32d243c4c8121f526465dc0455675d58d4
MD5 c3d231d1af33c29dd08fa811e4b35296
BLAKE2b-256 34521f81fe2555d67eca161242c882c50984f76b97f71adbf480a87964fc6f0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page