This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathTODO
83 lines (62 loc) · 2.42 KB
/
TODO
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
- A bug with -S shows wrong results.
- A bug causes the following behavior:
$ fdupes --symlinks testdir
testdir/with spaces b
testdir/with spaces a
testdir/zero_b
testdir/zero_a
testdir/symlink_two
testdir/twice_one
$ cp testdir/two testdir/two_again
$ fdupes --symlinks testdir
testdir/two_again
testdir/two
testdir/twice_one
testdir/symlink_two
testdir/with spaces b
testdir/with spaces a
testdir/zero_b
testdir/zero_a
** This is not the desired behavior. Likewise:
$ fdupes testdir
testdir/with spaces b
testdir/with spaces a
testdir/zero_b
testdir/zero_a
testdir/twice_one
testdir/two
$ fdupes --symlinks testdir
testdir/with spaces b
testdir/with spaces a
testdir/zero_b
testdir/zero_a
testdir/symlink_two
testdir/twice_one
- Option -R should not have to be separated from the rest,
such that "fdupes -dR testdir", "fdupes -d -R testdir",
"fdupes -Rd testdir", etc., all yield the same results.
- Add option to highlight or identify symlinked files (suggest
using --classify to identify symlinks with @ suffix... when
specified, files containing @ are listed using \@).
- Consider option to match only to files in specific directory.
- Add a way to store stat() info + inital and full hashes for
explicit loading in future runs to speed up repeated calls to
the program.
- Add an option to exclude files in the same directory from being
matched. This should be extensible so that various exclusion
criteria can be added later.
- Also add code to make directory ordering of pair matching more
stable; for instance, if dirs 'foo' and 'bar' are specified,
always put 'foo' at the start of the dupe set (which makes it
take precedence over 'bar' in this example.)
- The way that duplicates are sorted does not seem to work properly. The
sorting needs to be separated into its own function that sorts fully.
As it stands, sorting is only correct on specific match pairs and is
sometimes overridden by other match pairs to mess up the sort.
- The --xsize option can be improved. Instead of simply specifying an
exclusion size minimum, the option should offer multiple ways to
specify allowed file sizes. Examples:
- '--xsize=-1M' only examine files 1 MB or less
- '--xsize=+3M' only examine files 3 MB or greater
- '--xsize=512-1024' only examine files between 512 and 1024 bytes
- '--xsize=1M-3M,+20M' examine files 1-3 MB and >20 MB in size