2024-05-08 21:08:47 +00:00
|
|
|
interface SequenceObject {
|
2024-10-26 23:43:01 +00:00
|
|
|
created: number;
|
2024-05-08 21:08:47 +00:00
|
|
|
path: string;
|
|
|
|
hash: string;
|
|
|
|
name: string;
|
|
|
|
}
|
2024-05-15 18:34:24 +00:00
|
|
|
interface VideoObject {
|
2024-10-26 23:43:01 +00:00
|
|
|
created: number;
|
2024-05-15 18:34:24 +00:00
|
|
|
path: string;
|
|
|
|
hash: string;
|
|
|
|
name: string;
|
|
|
|
}
|
2024-07-31 18:39:21 +00:00
|
|
|
interface ImageObject {
|
|
|
|
path: string;
|
|
|
|
hash: string;
|
|
|
|
name: string;
|
|
|
|
}
|
2024-05-08 21:08:47 +00:00
|
|
|
export declare class Files {
|
2024-10-26 21:11:25 +00:00
|
|
|
private static sequencesDir;
|
|
|
|
static init(sequencesDir: string): Promise<boolean>;
|
2024-05-08 21:08:47 +00:00
|
|
|
static exists(path: string): Promise<boolean>;
|
2024-10-26 23:43:01 +00:00
|
|
|
static enumerateSequenceDirs(): Promise<string[]>;
|
2024-10-26 21:11:25 +00:00
|
|
|
static enumerateSequences(): Promise<SequenceObject[]>;
|
|
|
|
static isSequence(dirPath: string): Promise<boolean>;
|
2024-05-15 18:34:24 +00:00
|
|
|
static enumerateVideos(path: string): Promise<VideoObject[]>;
|
2024-07-31 18:39:21 +00:00
|
|
|
static enumerateSequence(path: string): Promise<ImageObject[]>;
|
2024-05-08 21:08:47 +00:00
|
|
|
}
|
2024-07-31 18:39:21 +00:00
|
|
|
export type { SequenceObject, VideoObject, ImageObject };
|