Giter Site home page Giter Site logo

katal's People

Contributors

phantez avatar suizokukan avatar ytterbium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ytterbium

katal's Issues

improve test_is_ntfs_prefix_mandatory()

///////////////////////////////////////////////////////////////////////////////

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

improve keywords used in cfg file to rename the files

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)

--whatabout

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.

--rmnotag

--rmnotag : remove from the database and from the target path all files without tag.

action__add() : improve messages

In action__add(), add a message before writing to the db ("all files have been copied, updating the database...") and after ("database updated").

fill_README

Fill README.md from the xxx_ constants defined in katal.py

feature request (maybe doc update?)

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:

  • I (some of my users) have huge collections of files (more than 100TB, more than billions directories and files).
    One of our workflow take hdf5 files (mostly stars simulations) to generate a movie file, then a contact sheet and a thumbnail.
    This highly automated workflow, fail from time to time for reasons. And we have... difficulties to find which movie/contact or thumbnail have failed to generate (due to the very large amount of dir/files).
  • Other example:
    Some users deals with genetic data, one sequenced genome has to be stored in various formats. Finding duplicates, failed transferts, failed conversions... is a task by itself.

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

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.