Exemplo n.º 1
0
 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)));
 }
Exemplo n.º 2
0
 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)));
 }