QNAPFileManager 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package QNAPFileManager --version 1.0.8                
NuGet\Install-Package QNAPFileManager -Version 1.0.8                
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.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QNAPFileManager --version 1.0.8                
#r "nuget: QNAPFileManager, 1.0.8"                
#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.8

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

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 158 1/19/2024
1.0.8 118 1/16/2024
1.0.7 204 7/3/2023
1.0.6 163 6/29/2023
1.0.5 146 6/28/2023
1.0.4 157 6/28/2023
1.0.3 157 6/27/2023
1.0.2 158 6/17/2023
1.0.1 220 3/21/2023
1.0.0 219 3/21/2023

Add RegEx expression to filter filenames in List method