https://github.com/simoso68/copy
Custom copy command, which doesn't depend on other copy commands.
https://github.com/simoso68/copy
Last synced: about 2 months ago
JSON representation
Custom copy command, which doesn't depend on other copy commands.
- Host: GitHub
- URL: https://github.com/simoso68/copy
- Owner: Simoso68
- License: gpl-3.0
- Created: 2023-07-18T19:35:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T15:33:54.000Z (almost 2 years ago)
- Last Synced: 2025-01-12T01:59:08.081Z (over 1 year ago)
- Language: Python
- Size: 7.39 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Copy
Fancier way to copy things around!
## Can copy everything
This can copy everything, even binary!

## Installing
### Linux
```bash
sudo curl https://github.com/Simoso68/copy/raw/main/bin/copy -sS -L -o /usr/bin/copy && sudo chmod +x /usr/bin/copy
```
### Windows
Still baking, stay tuned! \
But it can be built using PyInstaller.
### MacOS
I don't know anything about MacOS, you need to build it yourself.
## Configuring
### Default Configuration
```json
{
"progressbar": {
"bar": {
"completed":"#",
"incomplete":"-"
},
"container": {
"opening":"[",
"closing":"]"
}
},
"backend": {
"chars-per-iteration":256
}
}
```
### Progressbar
You can modify the progressbar, its completed element, the text shown for incomplete parts of the progress and the bar containers on each of the sides. \
Please keep those strings only one character large, if you don't want, that the progressbar bugs out.
### Backend
Currently, there is only one setting, chars-per-iteration, it means how many chars copy reads before writing them to the output. \
The default value is 256, but you can increase it to make your program faster, but the progress bar might bug out, when the value is too high. \
Decreasing the value makes the process slower, but the progressbar more accurate. \
Setting the value to 0 will create the output files, but won't write to them.
### Automatic file creation
If no config file exists, copy will create one for you and let you know. \
The config file has the default format, which you can see under the Default Configuration section in this README file.
### Config Parsing Errors
If the configuration file is invalid, copy won't copy any file and instantly lets you know about the error and then exits.
### Location on your filesystem
#### Windows
```C:/Users/USERNAME/.copy.conf.json```
#### Linux or MacOS
```/home/USERNAME/.copy.conf.json```