QNAPFileManager 1.0.9

dotnet add package QNAPFileManager --version 1.0.9                
NuGet\Install-Package QNAPFileManager -Version 1.0.9                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="QNAPFileManager" Version="1.0.9" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QNAPFileManager --version 1.0.9                
#r "nuget: QNAPFileManager, 1.0.9"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install QNAPFileManager as a Cake Addin
#addin nuget:?package=QNAPFileManager&version=1.0.9

// Install QNAPFileManager as a Cake Tool
#tool nuget:?package=QNAPFileManager&version=1.0.9                

QNAPFileManager

Component that allows you to manage files from a NAS server by QNAP.

Available as a NuGet package

Actions

Actions such as:

  • Create folders
  • Upload files
  • Download files
  • Delete files or folders
  • List content

Usage example

Instantiate object

FileManager nas = new("http://192.168.1.6:8080");

Login

nas.Login("user", "xxxxxxxx");

Check if a file or folder exists

if (nas.Exists("/Folder/images", "other"))
{
     ...
}

Create a folder

nas.Create("/Folder/images", "other");

Upload a file

nas.Upload(@"c:\temp\1.pdf", "/Folder/images/other");

Download a file

nas.Download("/Folder/images/other", "1.pdf", @"c:\temp\1.pdf");

Delete a file or folder

nas.Delete("/Folder/images/other", "1.pdf");

Delete multiple files or folders

nas.Delete("/Folder/images/other", new string[] { "1.pdf", "2.pdf" });

List all content (files and folders) sorted by criteria

var files = nas.List<FileResponse>("/Folder/images", ListType.ALL, sort: ListSortBy.FILESIZE, dir: ListSortDirection.Descending);
Console.WriteLine(string.Join<FileResponse>(",", files));

List files

var files = nas.List<FileResponse>("/Folder/images", ListType.FILE);
Console.WriteLine(string.Join<FileResponse>(",", files));

List folders

var folders = nas.List<FileResponse>("/Folder/images", ListType.FOLDER);
Console.WriteLine(string.Join<FileResponse>(",", folders));

List folder tree

var folders = nas.List<FolderResponse>("/Folder/images", ListType.TREE);
Console.WriteLine(string.Join<FolderResponse>(",", folders));
Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.9 163 1/19/2024
1.0.8 120 1/16/2024
1.0.7 205 7/3/2023
1.0.6 164 6/29/2023
1.0.5 148 6/28/2023
1.0.4 159 6/28/2023
1.0.3 161 6/27/2023
1.0.2 159 6/17/2023
1.0.1 222 3/21/2023
1.0.0 220 3/21/2023

Add RegEx expression to filter filenames in List method