public IEnumerable <string> GetDirectoryFiles(string relpath) { if (relpath.StartsWith(Path.DirectorySeparatorChar.ToString())) { relpath = relpath.Substring(1); } return(FSInterop.GetDirectoryFiles(Path.Combine(BackupPathSrc, relpath)).Select(filepath => Path.GetFileName(filepath))); }
public IEnumerable <string> GetDirectoryFiles(string relpath) { if (relpath.StartsWith(Path.DirectorySeparatorChar.ToString())) { relpath = relpath.Substring(1); } if (BackupPathSrc == null) { throw new Exception("Must be configured with source path for this operation"); } return(FSInterop.GetDirectoryFiles(Path.Combine(BackupPathSrc, relpath)).Select(filepath => Path.GetFileName(filepath))); }