Skip to content

DvoraShechter1/bundle-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 Bundle File

A simple .NET CLI tool that packages multiple files into a single .bundle binary file, and later allows extraction and inspection of its contents.

🧩 Description

This tool simplifies file bundling by providing:

  • Creation of a .bundle file 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.

🚀 Features

  • 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

🛠️ Technologies

  • .NET 6
  • C# language
  • Uses System.IO, BinaryReader, and BinaryWriter

📦 Installation

  1. Clone the repository:

    git clone https://github.com/DvoraShechter1/bundle-file.git
    cd bundle-file
    
  2. Build the project:

    dotnet build
  3. Run the tool:

    dotnet run -- <command> [arguments...]

⚙️ Usage

Bundle files

dotnet run -- bundle create bundle.bundle file1.txt file2.jpg file3.csv

Extract files

dotnet run -- bundle extract bundle.bundle outputFolder

List files in a bundle

dotnet run -- bundle list bundle.bundle

📁 Bundle File Structure

Each file in the .bundle format includes:

  • File name length (int)
  • File name (string)
  • File content length (long)
  • File content (bytes)

🙋‍♀️ Contributing

Contributions are welcome! Feel free to open issues or submit pull requests with enhancements or bug fixes.

📜 License

MIT License – See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages