Skip to content

Dualitys/FileSystemPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status NuGet version

File System Xamarin Plugin

Provides a unified API to interface with a platform's native file system The API is modeled on System.IO and uses it where it makes sense to do so, with the addition of making IO operations asynchronous.

Features

  • Provides wrappers for native file system objects (StorageItem for UWP or File/FolderInfo) which expose most of their functionality and can be used from shared .net standard assemblies
  • Supports getting the original file system objects from abstractions in the native assemblies that created them.
  • Provides standardized access to key file system areas that all platforms provide (app install folder, app exclusive data store folder)
  • Provides standardized ways to prompt the user to pick files/folders using each platform's native UI, complying with sandboxing restrictions

Supported platforms

  • UWP
  • .Net 4.6.1+
  • iOS
  • macOS
  • Android

Examples

Open a file in app install folder

var files = await CrossFileSystem.Current.LocalStorage().EnumerateFilesAsync();
var someFile = files.First();

var stream = await fileOne.OpenAsync(System.IO.FileAccess.Read);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%