suizokukan / katal Goto Github PK
View Code? Open in Web Editor NEWselect a bunch of files, create a catalogue of the selected files without duplicates and tag them
License: GNU General Public License v3.0
select a bunch of files, create a catalogue of the selected files without duplicates and tag them
License: GNU General Public License v3.0
def test_is_ntfs_prefix_mandatory(_path):
"""
test_is_ntfs_prefix_mandatory
________________________________________________________________________
Return True if the _path is a path in a systemfile requiring the NTFS
prefix for long filenames.
________________________________________________________________________
PARAMETER
_path : (str)the path to be tested
RETURNED VALUE
a boolean
"""
longpath = os.path.join(_path, "a"*250, "b"*250)
res = False
try:
os.mkdir(longpath)
except IOError:
res = True
if res is False:
os.rmdir(longpath)
return res
NAME > oldlogfile_NAME
o sys.exit(-1) is called if the config file is ill-formed or missing.
INTTIMESTAMP_SIZE__DATABASE_INDEX.SOURCE_EXTENSION2 juste non, c'est imbitable. Je suis sur Xubuntu et les variables dans Thunar (exemples au pif mais plus claires que les tiennes) c'est :
%f : Le chemin vers le premier fichier sélectionné
%F : Les chemins vers tous les fichiers sélectionnés
%d : Répertoire contenant le fichier qui est passé dans %f
%D : Répertoires contenant les fichiers qui sont passés dans %F
%n : Le premier nom de fichier sélectionné (sans le chemin)
%N : Les noms des fichiers sélectionnés (sans les chemins)
avoid name collision !
after dropping some files out of the target dir, let's clean the database by removing non existent files
if the argument is a file INSIDE the target directory, let's display some informations about it.
if the argument is a path OUTSIDE the target directory, let's walk inside and display all the required informations.
(date) path + name + extension
messages.log > messages.log.201506279032
--rmnotag : remove from the database and from the target path all files without tag.
see --infos options
add CONSTANT__ at the beginning of all constant variables' names
In action__add(), add a message before writing to the db ("all files have been copied, updating the database...") and after ("database updated").
instead of --move and --mirroronly
Fill README.md from the xxx_ constants defined in katal.py
I have a feature request (or a doc update request, if it's already possible):
I need an option to create the files database without copying/moving any (selected) files from srcdir to targetdir.
I'll explain myself:
As a backend task, I may have to search duplicates (but with another filename), purge old backups, etc.
So, having a regulary updated database at the root of a subdir hierarchy, which could be questioned in various way, could be very usefull.
Katal can be that tool (and easely be integrated in our workflows, as an error detector, or final report complement...) if it doesn't have to copy the whole file/dir hierarchies.
Bests
move the following lines :
# see https://pypi.python.org/pypi?%3Aaction=list_classifiers
[...]
at the beginning of the ******* lines .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.