@orangelogic/design-system 4.58.0 → 4.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library/package.json
CHANGED
package/library/packages/organisms/src/downloader/data/core/worker/utilities/FilePathFixer.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare class FilePathFixer {
|
|
|
10
10
|
truncateAll: Set<string>;
|
|
11
11
|
};
|
|
12
12
|
constructor(storage: IStorage, userPromptService: IUserPromptService, logger: ILogger);
|
|
13
|
+
private static pathKey;
|
|
14
|
+
static getTakenPaths(files: DownloadFile[], filesToFix: DownloadFile[]): Set<string>;
|
|
15
|
+
private isTaken;
|
|
13
16
|
shouldFixPath(file: DownloadFile): Promise<boolean>;
|
|
14
17
|
/**
|
|
15
18
|
* Checks if a file path contains any invalid characters
|
|
@@ -22,5 +25,6 @@ export declare class FilePathFixer {
|
|
|
22
25
|
*/
|
|
23
26
|
sanitizeFilePath(filePath: string, replacement?: string): string;
|
|
24
27
|
private truncatePath;
|
|
25
|
-
|
|
28
|
+
/** @param takenPaths from getTakenPaths; the path given to this file is added to it */
|
|
29
|
+
tryFixPath(file: DownloadFile, invalidPaths: string[], takenPaths: Set<string>): Promise<void>;
|
|
26
30
|
}
|