public PutioFileSystem(Api putio_api) { this.PutioApi = putio_api; this.OpenHandles = new Dictionary<Guid, PutioFileHandle>(); this.Root = PutioFolder.GetRootFolder(this); this.DownloadManager = new DownloadManager(Constants.MAX_CONNECTIONS); }
public PutioFileSystem(Api putio_api) { this.PutioApi = putio_api; this.OpenHandles = new Dictionary <Guid, PutioFileHandle>(); this.Root = PutioFolder.GetRootFolder(this); this.DownloadManager = new DownloadManager(Constants.MAX_CONNECTIONS); }
public PutioFolder(PutioFsDataProvider data_provider, PutioFolder parent) : base(data_provider, parent) { if (!this.IsDirectory) { throw new Exception("Can not create a directory entry for a non directory item."); } }
public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent) { this.DataProvider = data_provider; if (parent != null) { this.Fs = parent.Fs; } }
protected PutioFsItem(PutioFileSystem fs) { Item item = new Item(); item.Id = "0"; item.Name = ""; item.IsDirectory = true; this.Fs = fs; this.DataProvider = new PutioFsApiDataProvider(this.Fs, item); this.Parent = null; }
public override IEnumerable<Item> GetFsItems(PutioFolder folder) { return this.Fs.PutioApi.GetItems(this.PutioItem.Id); }
public override IEnumerable<Item> GetFsItems(PutioFolder folder) { yield break; }
public abstract IEnumerable<Item> GetFsItems(PutioFolder folder);
abstract public IEnumerable <Item> GetFsItems(PutioFolder folder);
public override IEnumerable <Item> GetFsItems(PutioFolder folder) { yield break; }
public override IEnumerable <Item> GetFsItems(PutioFolder folder) { return(this.Fs.PutioApi.GetItems(this.PutioItem.Id)); }
public PutioFile(PutioFsDataProvider data_provider, PutioFolder parent) : base(data_provider, parent) { this.Cache = new LocalFileCache(this); }
public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent) { this.DataProvider = data_provider; if (parent != null) this.Fs = parent.Fs; }
public PutioFolder(PutioFsDataProvider data_provider, PutioFolder parent) : base(data_provider, parent) { if (!this.IsDirectory) throw new Exception("Can not create a directory entry for a non directory item."); }