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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | 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.
-
net6.0
- Microsoft.AspNetCore.StaticFiles (>= 2.2.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Add RegEx expression to filter filenames in List method