[jump to content][No Software Patents]Tools (new) : filecache [ Home | Scylla+Charybdis old home | Tools (old) | Tools (new) | FAQ | Downloads ]

Moving to GitHub, slowly

The software on this pages will slowly be moved to GitHub https://github.com/hilbix/. The CVS repository will be migrated to GIT as well, so the history will be preserved, a bit. See FAQ.

Scylla and Charybdis, filecache - Tools

The tools are developed under Linux with ESR's paradigm release early, release often in mind.
So you can consider this beta software, or alpha, or pre-alpha, or even worse ;)

Have a look in the download directory for all downloads.
As always here, all you get is the source. No binaries here.

filecache 0.0.1-20061115-052726

Manage a cache for file data (look into latest version, download latest version 0.0.1-20061115-052726)

Sometimes you want to cache some data onto a filesystem with a name which is not suitable for the filesystem. And you want the cache to grow such that it can contain any amount of information.

Filecache exactly allows to do this. Basic use is like follows:

name='*/\/\*../
%=?|%'
file="`filecache out "$name"`"
if [ -f "$file" ]
then
echo "found"
else
echo "new"
readthefile "$name" > "$file"
fi

Note that the result of filecache depends on the contents of out, so the name will change as soon as the cache changes. So never use softlinks to link to a cached file or save the name of the file anywhere. Always be sure to re-evaluate it through filecache.

History:

version 0.0.1-20061115-052726

download (141595 bytes)

Bugfix release. Still not completed version. Options -x and -l added.

Demangling of names added. You must tell the cachedir if demangling filenames from the filesystem, else use option -e.

Example:

find out -type f -print | filecache -dxf out

Demangling runs until the end of the name or the sequence '$.'. Latter is for extensions, as you perhaps like to store all JPG style files as someting.jpg or have several "backups" of a file, like done with `mvatom -b`.

version 0.0.0-20061115-033558

(140218 bytes archive)

First version. It does not work yet perfectly.

Missing is the reordering of the cache in case too many files are present in a directory. However the name mangling works now as expected.

License and Disclaimer

All you can see here is free software according to the GNU GPL.
Copyright (C)2000-2011 by Valentin Hilbig
Note that the software comes with absolutely no warranty of any kind.
You use the software at your own risk.
Valentin Hilbig cannot be hold responsible for any unintended damage,
lost data or malfunction of the software you can find here.

[FSFE contributor 2007]

[end of page - jump back to content][hacker culture]
Last modified: 2011-09-12 by Valentin Hilbig [ Imprint / Impressum ]