A simple .NET CLI tool that packages multiple files into a single .bundle binary file, and later allows extraction and inspection of its contents.
This tool simplifies file bundling by providing:
- Creation of a
.bundlefile from multiple input files - Extraction of the original files from the bundle
- Listing the contents of a bundle without extracting
Each file is stored with its name and size, ensuring integrity and separation.
- Pack multiple files into a single binary
- Extract files to a target directory
- List file names inside the bundle
- Easy to use and script-friendly
- Clean and open-source code
- .NET 6
- C# language
- Uses
System.IO,BinaryReader, andBinaryWriter
-
Clone the repository:
git clone https://github.com/DvoraShechter1/bundle-file.git cd bundle-file -
Build the project:
dotnet build
-
Run the tool:
dotnet run -- <command> [arguments...]
dotnet run -- bundle create bundle.bundle file1.txt file2.jpg file3.csvdotnet run -- bundle extract bundle.bundle outputFolderdotnet run -- bundle list bundle.bundleEach file in the .bundle format includes:
- File name length (int)
- File name (string)
- File content length (long)
- File content (bytes)
Contributions are welcome! Feel free to open issues or submit pull requests with enhancements or bug fixes.
MIT License – See the LICENSE file for details.