Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rhythmcache authored Nov 28, 2024
1 parent b629bce commit 62dee81
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# WinZipUnixPerm
Apply Linux attributes and permissions to the contents of a ZIP file directly from a Windows environment

# WinPerm (Experimental)
# WinZipUnixPerm (Experimental)

A tool to apply Linux-style attributes and permissions to the contents of a ZIP file directly from a Windows environment.
A simpl tool to apply Linux-style attributes and permissions to the contents of a ZIP file directly from a Windows environment.

⚠️ **This is an experimental build**. Functionality is not guaranteed, and unexpected behavior may occur.

## Usage

### General Syntax

- to apply permissions to every file and folder of zip
```
winzipunixperm <zip_path> <dir_perm> <file_perm>
```
- to apply permission to a single file/folder of zip
```
winperm <path_to_zip> <dir_perm> <file_perm>
winzipunixperm -s <zip_path> <path_in_zip> <perm>
```

###### Example
To apply 755 permissions to directories and 644 permissions to files in a ZIP located at "C:\Users\Admin\Downloads\example.zip"

Expand All @@ -24,4 +29,12 @@ winperm "C:\Users\Admin\Downloads\example.zip" 755 644
```
, now that zip when extracted on linux , it will have 644 and 755 permissions

- To set permissions on a single file, here is an example command
```
python uniwinperm.py -s "zipfile.zip" "folder1/folder2/folder3/file.txt" 755
```





0 comments on commit 62dee81

Please sign in to comment.