parseListUnix.d.ts 453 B

123456789101112
  1. import { FileInfo } from "./FileInfo";
  2. /**
  3. * Returns true if a given line might be a Unix-style listing.
  4. *
  5. * - Example: `-rw-r--r--+ 1 patrick staff 1057 Dec 11 14:35 test.txt`
  6. */
  7. export declare function testLine(line: string): boolean;
  8. /**
  9. * Parse a single line of a Unix-style directory listing.
  10. */
  11. export declare function parseLine(line: string): FileInfo | undefined;
  12. export declare function transformList(files: FileInfo[]): FileInfo[];