Fix post cherry pick issues

This commit is contained in:
MathieuG-P
2024-10-24 20:47:40 +02:00
parent f70df59e21
commit 27f36dfa54
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -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<boolean> {
try {
+1 -1
View File
@@ -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;
+2
View File
@@ -1,3 +1,5 @@
export function isFunction(value: any): value is Function {
return !!(value && value.constructor && value.call && value.apply)
}
export function noop() {}