Exemplo n.º 1
0
        public IFileSystem ChooseFileSystem(string lastFileSystemId)
        {
            var fs = FileSystems.FirstOrDefault(x => x.IsAvailable && x.Id == lastFileSystemId);

                        #if __IOS__
            if (fs == null)
            {
                fs = FileSystems.OfType <DeviceFileSystem> ().First(x => x.IsAvailable);
            }
                        #endif
            if (fs == null)
            {
                fs = FileSystems.First(x => x.IsAvailable);
            }

            return(fs);
        }
Exemplo n.º 2
0
 public IFileSystem CurrentFileSystem()
 {
     return(FileSystems.FirstOrDefault(it => it.Name == CurrentFileSystemKey).FileSystem);
 }