-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
68 lines (55 loc) · 2.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
RarDirFs 0.1
============
Mount a directory read only where all rar archives are hidden and their files
are shown instead. Beside this it can also filter files and flatten out
directories.
The big difference from other fuse based rar archive file systems is that
RarDirFs doesn't unpack the whole file when you open it, it just read directly
from the archive. No extra storage, no extra time, just as you normally would.
Because of this design some limitations arose, see under Limitations.
Example
-------
Assume we have two archives that contains one file each, say foo and bar. We
have stored them in separate directories. We also have one file we don't want
to show, foobar.
Using this srcdir
srcdir/foobar
srcdir/Archive1/foo.rar
srcdir/Archive1/foo.r01
srcdir/Archive1/foo.r02
srcdir/Archive2/bar.rar
srcdir/Archive2/bar.r01
srcdir/Archive2/bar.r02
This gives us the following structure
mountdir/
mountdir/foo
mountdir/bar
In the example above we could have used this command line
rardirfs srcdir mountdir -o flatten=flatten.txt,filter=filter.txt
Where flatten.txt would look like this
# Don't show the folders Archive, show there content instead
^Archive\d+$
And filter.txt
# I don't like foobar
^foobar$
The filter and flatten files
----------------------------
These files can be used to customize the behaviour of RarDirFs. It's a plain
text file where each line contains a regular expression compatible with Python
re module. Lines starting with # are ignored. Remember that there will be no
way to differentiate between a file or a directory.
If an entry would match a pattern in both files, it will be filtered.
Known Limitations
-----------------
* RarDirFs does not verify that the RAR archive is correct or complete.
* Compressed archives are support by using the unrar command.
Requirements
------------
Currently it only depends on fuse-python.
For compressed archives, unrar is also needed.
License
-------
2-clause BSD License, see LICENSE for details.
More information
----------------
See https://github.com/gonzzor/rardirfs for more information.