void ThrowIfContainerNotFound() { if (!_file.Directory.Exists) { throw StreamingErrors.ContainerNotFound(this); } }
void ThrowIfContainerNotFound() { if (!Exists()) { throw StreamingErrors.ContainerNotFound(this); } }
public IEnumerable <string> ListItems() { try { return(_root.GetFiles().Select(f => f.Name).ToArray()); } catch (DirectoryNotFoundException e) { throw StreamingErrors.ContainerNotFound(this, e); } }