/// <exception cref="System.IO.IOException"/> protected internal virtual string GenerateAndLogErrorListing(Org.Apache.Hadoop.FS.Path src, Org.Apache.Hadoop.FS.Path dst) { FileSystem fs = GetFileSystem(); GetLog().Error("src dir " + ContractTestUtils.Ls(fs, src.GetParent())); string destDirLS = ContractTestUtils.Ls(fs, dst.GetParent()); if (fs.IsDirectory(dst)) { //include the dir into the listing destDirLS = destDirLS + "\n" + ContractTestUtils.Ls(fs, dst); } return(destDirLS); }
/// <summary>List a path in the test FS</summary> /// <param name="path">path to list</param> /// <returns>the contents of the path/dir</returns> /// <exception cref="System.IO.IOException">IO problems</exception> protected internal virtual string Ls(Org.Apache.Hadoop.FS.Path path) { return(ContractTestUtils.Ls(fileSystem, path)); }