From 62dee817a39c3f56218df17b68d20c9075e5ed6d Mon Sep 17 00:00:00 2001 From: winter <153998419+rhythmcache@users.noreply.github.com> Date: Thu, 28 Nov 2024 10:23:29 -0800 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index de8496d..29440c3 100644 --- a/README.md +++ b/README.md @@ -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 +``` +- to apply permission to a single file/folder of zip ``` -winperm +winzipunixperm -s ``` + ###### Example To apply 755 permissions to directories and 644 permissions to files in a ZIP located at "C:\Users\Admin\Downloads\example.zip" @@ -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 +``` + + + +