From 0c9a4a28f31e7839487b7bcf5196b928caffb979 Mon Sep 17 00:00:00 2001 From: Mauro Cardillo Date: Thu, 21 Sep 2023 18:51:21 +0200 Subject: [PATCH] Update Readme and nuget spec --- README.md | 14 +++++++++++++- .../FileSystem.Adapters.Ftp.csproj | 1 + .../FileSystem.Adapters.Memory.csproj | 1 + .../FileSystem.Adapters.Sftp.csproj | 1 + src/FileSystem/FileSystem.csproj | 1 + 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a7781c..7d660d0 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,19 @@ var adapters = new List var fileSystem = new FileSystem(adapters); ``` +### FTP adapter +``` +var ftpClient = new FtpClient("hostName", "userName", "password"); + +var adapters = new List +{ + new LocalAdapter("local", "/var/files"), + new FtpAdapter("ftpAdapter1", "/", ftpClient), +}; + +var fileSystem = new FileSystem(adapters); +``` + ### SFTP adapter ``` // SFTP connection. @@ -115,4 +128,3 @@ await fileSystem.MoveFileAsync("sftp://Foo/Bar.txt", "local://Bar/Foo.txt"); await fileSystem.WriteFileAsync("local://foo/bar.txt", "Bar!"); ``` - diff --git a/src/FileSystem.Adapters.Ftp/FileSystem.Adapters.Ftp.csproj b/src/FileSystem.Adapters.Ftp/FileSystem.Adapters.Ftp.csproj index ad103b0..e73bc4a 100644 --- a/src/FileSystem.Adapters.Ftp/FileSystem.Adapters.Ftp.csproj +++ b/src/FileSystem.Adapters.Ftp/FileSystem.Adapters.Ftp.csproj @@ -10,6 +10,7 @@ Maurosoft FileSystem Ftp adapter The Maurosoft FileSystem Ftp adapter. Maurosoft;file-system;ftp + Mauro Cardillo diff --git a/src/FileSystem.Adapters.Memory/FileSystem.Adapters.Memory.csproj b/src/FileSystem.Adapters.Memory/FileSystem.Adapters.Memory.csproj index 62346d4..faeca3b 100644 --- a/src/FileSystem.Adapters.Memory/FileSystem.Adapters.Memory.csproj +++ b/src/FileSystem.Adapters.Memory/FileSystem.Adapters.Memory.csproj @@ -10,6 +10,7 @@ Maurosoft FileSystem Memory adapter The Maurosoft FileSystem Memory adapter. Maurosoft;file-system;memory + Mauro Cardillo diff --git a/src/FileSystem.Adapters.Sftp/FileSystem.Adapters.Sftp.csproj b/src/FileSystem.Adapters.Sftp/FileSystem.Adapters.Sftp.csproj index 08b24b3..d44223a 100644 --- a/src/FileSystem.Adapters.Sftp/FileSystem.Adapters.Sftp.csproj +++ b/src/FileSystem.Adapters.Sftp/FileSystem.Adapters.Sftp.csproj @@ -10,6 +10,7 @@ Maurosoft FileSystem SFTP adapter The Maurosoft FileSystem SFTP adapter. Maurosoft;file-system;sftp + Mauro Cardillo diff --git a/src/FileSystem/FileSystem.csproj b/src/FileSystem/FileSystem.csproj index 8049258..13388ba 100644 --- a/src/FileSystem/FileSystem.csproj +++ b/src/FileSystem/FileSystem.csproj @@ -10,6 +10,7 @@ Maurosoft FileSystem Maurosoft FileSystem is a file system abstraction supporting multiple adapters. Maurosoft;file-system;amazon-s3;azure-blob-storage;azure-file-storage;dropbox;microsoft-onedrive;sftp + Mauro Cardillo