rename checkExistsAndCreateCollectionDir to checkExistsAndCreateDir

This commit is contained in:
Abhinav 2023-03-23 12:20:12 +05:30
parent fd60c5c826
commit d9d423b7f1
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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,