https://github.com/isty001/copy
https://github.com/isty001/copy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isty001/copy
- Owner: Isty001
- License: mit
- Created: 2016-11-12T15:29:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-12T15:39:58.000Z (over 8 years ago)
- Last Synced: 2025-01-29T21:54:38.752Z (3 months ago)
- Language: C
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### Install
With [clib](https://github.com/clibs/clib):
```
clib install isty001/copy
```..or
```
git clone https://github.com/isty001/copy
```#### Usage
```C
#include "copy.h"
```Copy one file:
```C
copy_file("./dir/file.txt", "./target_dir/file.txt");
```Copy a directory recursively:
```C
copy_dir("./dir/sub_dir", "./target_dir/sub_dir");
```Both `"./target_dir/file.txt"` and `"./target_dir/sub_dir"` will be created if needed.