SyncFileContents
is a console application that scans a directory for files with a specified name, compares their contents using SHA256 hashes, and allows the user to synchronize these files across the directory.
- Recursively scan a specified directory for files with a given name.
- Compare file contents using SHA256 hashes.
- Display file paths, creation times, and modification times.
- Synchronize file contents across different directories within the scanned path.
- Commit changes to a Git repository if there are outstanding modifications.
To use SyncFileContents
, you need to have .NET SDK and Git installed on your machine.
Clone the repository:
git clone https://github.com/ktsu-io/SyncFileContents.git
Navigate to the project directory:
cd SyncFileContents
Build the project:
dotnet build
Run the application with the required command-line arguments:
dotnet run -- [path] [filename]
path
: The path to recursively scan in. If not provided, you will be prompted to enter it.filename
: The filename to scan for. If not provided, you will be prompted to enter it.
To scan the current directory for files named example.txt
and synchronize their contents:
dotnet run -- . example.txt
Clone the repository and navigate to the project directory:
git clone https://github.com/ktsu-io/SyncFileContents.git
cd SyncFileContents
Build the project:
dotnet build
To run the tests, use the following command:
dotnet test
This project is licensed under the MIT License. See the LICENSE file for details.