RePointFS 1.0.1
dotnet tool install --global RePointFS --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local RePointFS --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=RePointFS&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package RePointFS --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RePointFS : Simplify File Management
The RePointFS Utilities Library provides a set of tools to facilitate common file system operations, including file downloads from Azure Blob Storage and saving file paths to a SQL Server database.
Features
- Download files from Azure Blob Storage to a local directory.
- Save file paths to a SQL Server database table.
Installation
You can install the library via NuGet Package Manager:
Install-Package RePointFS --version 1.0.1
Usage
Downloading Files from Azure Blob Storage
using FileSystemUtilities;
var localRootPath = @"C:\JHStorage";
var azureConnectionString = "your-azure-storage-connection-string";
var azureContainerName = "your-container-name";
// Create an instance of RePointFS Manager
var repointFS = new RePointFS(localRootPath, azureConnectionString, azureContainerName);
// Download all files from Azure Blob Storage to a local directory
await repointFS.DownloadAllFilesAsync(destinationDirectory);
Saving File Paths to SQL Server Database
using FileSystemUtilities;
var azureConnectionString = "your-azure-storage-connection-string";
var azureContainerName = "your-container-name";
var localRootPath = @"C:\JHStorage";
var sqlConnectionString = "your-sql-server-connection-string"; // Replace with your actual SQL Server connection string
// Create an instance of RePointDB Manager
var repointDB = new RepointDB(sqlConnectionString, azureConnectionString, azureContainerName);
// Save file paths to SQL Server database table
await fileSystemManager.DownloadAllFilesAsync("SampleTable", "ColumnName", localRootPath, true);
Configuration
- localRootPath: The local directory where files will be downloaded.
- azureConnectionString: The connection string for Azure Blob Storage.
- azureContainerName: The name of the Azure Blob Storage container.
- connectionString: The connection string for the SQL Server database.
- tableName: The name of the table in the SQL Server database.
- columnName: The name of the column in the SQL Server database table where file paths will be saved.
- destinationDirectory: The destination directory for downloaded files.
License
Copyright (c) 2024 Joever Monceda
Linkedin: Joever Monceda
Medium: Joever Monceda
Twitter @_EthanHunt07
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
1. Added support for downloading files from Azure Blob Storage.
2. Implemented functionality to save file paths to a SQL Server database.
3. Provides an easy-to-use interface for common file system operations.
4. Initial release of the FileSystem Utilities library.