Skip to content

Commit

Permalink
Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
aborel committed Mar 17, 2023
1 parent 1ec9dfb commit 477847b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ You can use this tool to generate the ```ACOUA_md5.md5```file needed for submitt

# How to use the tool

A full documentation can be found [here]() Note : Insert the KB link here when it's ready
In the ACOUA Checksum tool, the user must select a directory containing a dataset to be archived (including the metadata.xml file).
The tool will calculate md5 checksums for all files except MacOS ```.DS_Store``` and Windows ```Thumbs.db```. By default, the tool will calculate checksums for files contained in Zip files under the selected directory and not the Zip files themselves, in order to be compatible with the Libsafe Archive Extractor. In agreement with the Libsafe behavior (sanitizers executed before the Archive Extractor), ACOUA Checksum calculates checksums for ```.DS_Store``` and ```Thumbs.db``` files contained in Zip files.
The user can choose to calculate checksums for the Zip files instead of their content by unselecting the "Calculate checksum inside Zip files?" tick box.

The software for Windows and macos can be found here : [Releases](https://github.com/epfllibrary/acouachecksum/releases)
In case the tool encounters errors, a warning will be displayed in the main window of the tool and the errors will be logged in the ```ACOUA_md5_errors.txt``` file.

Linux user can use the source code to launch the program.
The software for Windows and Macos can be found here : [Releases](https://github.com/epfllibrary/acouachecksum/releases)

Linux user can use the source code to launch the program as ```python main.py``` after installing the required modules from the requirements.txt file.

## Source code

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def runchecksum(tkroot, width_chars, check_zips):
try:
md5 = md5Checksum(archived_file, ziparchive=archive)
# filenames must be encoded as UTF-8, or they might not match what Libsafe sees on the filesystem
# also: NFC normalization for proper (composed) representation of accented characters
# Here explicit NFC normalization is not desired: the Libsafe Archive Extractor will manage.
f.write(f'{md5} {archive_path + os.path.sep + archived_file.encode(assumed_encoding).decode("utf-8")}\n'.encode("UTF-8"))
except Exception as e:
trace = str(e)
Expand Down

0 comments on commit 477847b

Please sign in to comment.