From 27f36dfa54c54b8a200e64324af02d15cff85ba5 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Thu, 24 Oct 2024 20:47:40 +0200 Subject: [PATCH] Fix post cherry pick issues --- src/main/helpers/fs.helpers.ts | 4 ++-- src/main/services/folder-linker.service.ts | 2 +- src/shared/helpers/function.helpers.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/helpers/fs.helpers.ts b/src/main/helpers/fs.helpers.ts index 480effec..4092f625 100644 --- a/src/main/helpers/fs.helpers.ts +++ b/src/main/helpers/fs.helpers.ts @@ -1,4 +1,4 @@ -import { CopyOptions, MoveOptions, copy, createReadStream, ensureDir, move, realpath, stat, symlink } from "fs-extra"; +import { CopyOptions, MoveOptions, copy, createReadStream, ensureDir, move, pathExistsSync, realpath, stat, symlink } from "fs-extra"; import { access, mkdir, rm, readdir, unlink, lstat, readlink } from "fs/promises"; import path from "path"; import { Observable, concatMap, from } from "rxjs"; @@ -7,7 +7,7 @@ import { BsmException } from "shared/models/bsm-exception.model"; import crypto from "crypto"; import { execSync } from "child_process"; import { tryit } from "../../shared/helpers/error.helpers"; -import { CustomError } from "shared/models/exceptions/custom-error.class"; +import { CustomError } from "../../shared/models/exceptions/custom-error.class" export async function pathExist(path: string): Promise { try { diff --git a/src/main/services/folder-linker.service.ts b/src/main/services/folder-linker.service.ts index 42f7686c..af844a16 100644 --- a/src/main/services/folder-linker.service.ts +++ b/src/main/services/folder-linker.service.ts @@ -5,7 +5,7 @@ import { lstat, symlink } from "fs/promises"; import path from "path"; import { copy, readlink } from "fs-extra"; import { lastValueFrom } from "rxjs"; -import { noop } from "shared/helpers/function.helpers"; +import { noop } from "../../shared/helpers/function.helpers"; export class FolderLinkerService { private static instance: FolderLinkerService; diff --git a/src/shared/helpers/function.helpers.ts b/src/shared/helpers/function.helpers.ts index 6f17657d..62097d50 100644 --- a/src/shared/helpers/function.helpers.ts +++ b/src/shared/helpers/function.helpers.ts @@ -1,3 +1,5 @@ export function isFunction(value: any): value is Function { return !!(value && value.constructor && value.call && value.apply) } + +export function noop() {}