public async Task <Stream> Open(string relativePath) { if (!await _fileStorageProvider.Exists(relativePath)) { throw new HopexException("file not exists."); } return(await _fileStorageProvider.Open(relativePath)); }
/// <summary> /// Existses the specified storage key. /// </summary> /// <param name="storageKey">The storage key.</param> /// <returns>Task<System.Boolean>.</returns> public virtual async Task <bool> Exists(string storageKey) { return(await _provider.Exists(storageKey)); }