-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
78 lines (57 loc) · 2.82 KB
/
README
File metadata and controls
78 lines (57 loc) · 2.82 KB
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
==============================================================================
checkcopy
=========
Version 0.5, released 2009-11-XX
http://da.mcbf.net/wiki/Checkcopy
Checkcopy is a copy program which computes checksums on the fly to verify them
and/or write them out to disk. It can also be used to just verify checksums.
This program will copy one or more files / directories to a destination,
and compute its checksum on the fly. If checksum files are getting copied
over, their contents are parsed and compared to the computed checksums. If no
checksum was found for a file, then the computed one is written to disk.
Checkcopy uses GIO, and as such operates on local and remote files /
destinations.
==============================================================================
Known Issues
------------
W A R N I N G:
Similarly to how `cp' works, checkcopy currently overwrites destination
files without warning!
==============================================================================
Usage
-----
1. The source files / directories have to be specified on the command line.
So running just ``checkcopy'' is not going to get you anywhere. See TODO.
2. The destination is can be predetermined, preselected, or simply selected.
a. If a destination was specified by the -d switch, then the user
will not get asked for one.
b. If a default destination was specified by the -D switch, then a file
chooser will get displayed, starting at the specified URI.
c. Otherwise, a file chooser will be shown with the current directory as the
starting location.
If you would like to just verify the files, and not copy them, then specify
``-d verify://'' on the command line.
This should allow easy bindings in file managers.
Before the files are being copied, they are scanned for checksum files.
Currently only files ending in .md5, .sha, .sha1 and CHECKSUM are detected as
containing checksums. Its contents are then parsed, and remembered.
While the files are copied, the checksum is created. If a checksum is on file,
it will get compared. If no checksum was previously discovered, the computed
one is written to disk as /foo/bar/${DESTINATION}/${DESTINATION}.CHECKSUM
(currently always as sha1).
==============================================================================
Requirements
------------
checkcopy requires the following libraries to be installed:
* gtk+ toolkit:
Checkcopy was tested with gtk 2.18.3, but gtk 2.16 would probably suffice.
* gio:
All file operations are based on GIO functions.
* libxfce4util:
Required for some utility functions.
==============================================================================
Feedback
--------
Please check the TODO file for the current plan for checkcopy.
All comments, feedback, and bug reports are very welcome! Please email the
author at david@mcbf.net .