public string ReadAllText() => LocalFileProvider.Retry(() => System.IO.File.ReadAllText(_file.FullName));
public Stream OpenRead() => LocalFileProvider.Retry(() => _file.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite));
public void Delete() => LocalFileProvider.Retry(() => _file.Delete());
public IEnumerable <IFile> GetFiles(SearchOption searchOption = SearchOption.TopDirectoryOnly) => LocalFileProvider.Retry(() => _directory.GetFiles("*", searchOption).Select(file => new LocalFile(file.FullName)));
public IEnumerable <IDirectory> GetDirectories(SearchOption searchOption = SearchOption.TopDirectoryOnly) => LocalFileProvider.Retry(() => _directory.GetDirectories("*", searchOption).Select(directory => new LocalDirectory(directory.FullName)));
public void Delete(bool recursive) => LocalFileProvider.Retry(() => _directory.Delete(recursive));
public void Create() => LocalFileProvider.Retry(() => _directory.Create());