a zip code crypto-currency system good for red ONLY

hybrid-file-system.d.ts 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /// <reference types="node" />
  2. import { FileSystem, VirtualFileSystem } from './interfaces';
  3. import { FileCache } from './file-cache';
  4. import { VirtualDirStats, VirtualFileStats } from './virtual-file-utils';
  5. export declare class HybridFileSystem implements FileSystem, VirtualFileSystem {
  6. private fileCache;
  7. private filesStats;
  8. private directoryStats;
  9. private inputFileSystem;
  10. private outputFileSystem;
  11. private writeToDisk;
  12. constructor(fileCache: FileCache);
  13. setInputFileSystem(fs: FileSystem): void;
  14. setOutputFileSystem(fs: FileSystem): void;
  15. setWriteToDisk(write: boolean): void;
  16. isSync(): boolean;
  17. stat(path: string, callback: Function): any;
  18. readdir(path: string, callback: Function): any;
  19. readJson(path: string, callback: Function): any;
  20. readlink(path: string, callback: Function): any;
  21. purge(pathsToPurge: string[]): void;
  22. readFile(path: string, callback: Function): any;
  23. addVirtualFile(filePath: string, fileContent: string): void;
  24. getFileContent(filePath: string): string;
  25. getDirectoryStats(path: string): VirtualDirStats;
  26. getSubDirs(directoryPath: string): string[];
  27. getFileNamesInDirectory(directoryPath: string): string[];
  28. getAllFileStats(): {
  29. [filePath: string]: VirtualFileStats;
  30. };
  31. getAllDirStats(): {
  32. [filePath: string]: VirtualDirStats;
  33. };
  34. mkdirp(filePath: string, callback: Function): void;
  35. mkdir(filePath: string, callback: Function): void;
  36. rmdir(filePath: string, callback: Function): void;
  37. unlink(filePath: string, callback: Function): void;
  38. join(dirPath: string, fileName: string): string;
  39. writeFile(filePath: string, fileContent: Buffer, callback: Function): void;
  40. }