rename checkExistsAndCreateCollectionDir to checkExistsAndCreateDir
This commit is contained in:
parent
fd60c5c826
commit
d9d423b7f1
|
@ -6,7 +6,7 @@ export const exists = (path: string) => {
|
|||
return fs.existsSync(path);
|
||||
};
|
||||
|
||||
export const checkExistsAndCreateCollectionDir = async (dirPath: string) => {
|
||||
export const checkExistsAndCreateDir = async (dirPath: string) => {
|
||||
if (!fs.existsSync(dirPath)) {
|
||||
await fs.mkdir(dirPath);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ import { getEncryptionKey, setEncryptionKey } from './api/safeStorage';
|
|||
import { clearElectronStore } from './api/electronStore';
|
||||
import { openDiskCache, deleteDiskCache } from './api/cache';
|
||||
import {
|
||||
checkExistsAndCreateCollectionDir,
|
||||
checkExistsAndCreateDir,
|
||||
checkExistsAndRename,
|
||||
saveStreamToDisk,
|
||||
saveFileToDisk,
|
||||
|
@ -62,7 +62,7 @@ const windowObject: any = window;
|
|||
|
||||
windowObject['ElectronAPIs'] = {
|
||||
exists,
|
||||
checkExistsAndCreateCollectionDir,
|
||||
checkExistsAndCreateDir,
|
||||
checkExistsAndRename,
|
||||
saveStreamToDisk,
|
||||
saveFileToDisk,
|
||||
|
|
Loading…
Reference in a new issue