https://github.com/ufechner7/compress
Example code for compressing and decompressing files
https://github.com/ufechner7/compress
Last synced: 5 months ago
JSON representation
Example code for compressing and decompressing files
- Host: GitHub
- URL: https://github.com/ufechner7/compress
- Owner: ufechner7
- License: mit
- Created: 2022-09-03T15:46:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-04T09:50:47.000Z (almost 4 years ago)
- Last Synced: 2025-03-17T13:11:45.523Z (over 1 year ago)
- Language: Julia
- Size: 7.97 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compress
Example code for compressing and decompressing files
## Example
Execute:
```julia
const filename=joinpath("data", "log_8700W_8ms.csv")
input = filename * ".xz"
output = filename
decompress(input, output)
```
to decompress the example file.
Execute:
```julia
using Compress
const filename=joinpath("data", "log_8700W_8ms.csv")
input = filename
output = filename * ".xz"
compress(input, output; force=false)
```
to compress the uncompressed example file.
The parameter `force=false` means that the output file will not
be overwritten if it already exists.