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:
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 hashes)
Built Distribution
Close
Hashes for file_updater-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8510adbe4c43db3fc686b19979b1ec32d243c4c8121f526465dc0455675d58d4 |
|
MD5 | c3d231d1af33c29dd08fa811e4b35296 |
|
BLAKE2b-256 | 34521f81fe2555d67eca161242c882c50984f76b97f71adbf480a87964fc6f0d |