English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Announcement: pftdbns 0.2.4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-15 (15:50)
From: Oliver Bandel <oliver@f...>
Subject: Announcement: pftdbns 0.2.4

Hello, OCaml-programmers,

I have to announce version 0.2.4 of pftdbns,
a tool which is useful in sorting/listing/moving files.

It's name "pftdbns" is a short hand for "put files to directories (sorted) by name structure".

It takes filenames, maps each char of the filename into a char, representing
the charclass of it (a..z and A..Z -> "l" (letter), 0...9 -> "i" (integer" and so on)).

This yields to an easy way of sorting files by names, based upon file-naming
with certain filenaming-conventions.

So, for example  "hello.txt" and "ballo.txt" are part of the same name structure,
as well as "1001.txt" and "8251.txt" but also "8251.jpg" are of the same name
structure. For example "foobar.tex" and "foobar.txt" are equally structured too.

The default behaviour is to move files into directories. The names of the directories
are choosen from the string, which represents the name structure by default.

Since version 0.2.2 the default-behaviour of moving files can be changed
to only list the lilenames/namestructrues (and not moving them).


  -dp directory name-prefix
  -fd fixed directory name
  -ld function selection: only list filenames and directory name;
                           do not move files
  -la function selection: only list (list all): "all" means filename,
                           namestructure and directory name;
                           do not move files

I hope you enjoy this program, and I think if you have to handle a lot
of files, this will be very helpful.

You can find the tool here:

There also is a README in this directory, so that you can read more details.

A description can also be found here:

pftdbns uses the GPL-license.

Best Regards,
     Oliver Bandel
P.S.: Also have changed internal datastructures from pair to record, but for you as
      user this might only be marginally interesting.