fix(core): remove deprecated recursive rmdir with rm -rf (#21327)
This commit is contained in:
parent
e4daf33601
commit
269fa1a75f
@ -4,7 +4,7 @@
|
|||||||
* and where we create the actual unix socket/named pipe for the daemon.
|
* and where we create the actual unix socket/named pipe for the daemon.
|
||||||
*/
|
*/
|
||||||
import { statSync, writeFileSync } from 'fs';
|
import { statSync, writeFileSync } from 'fs';
|
||||||
import { ensureDirSync, rmdirSync } from 'fs-extra';
|
import { ensureDirSync, rmSync } from 'fs-extra';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { projectGraphCacheDirectory } from '../utils/cache-directory';
|
import { projectGraphCacheDirectory } from '../utils/cache-directory';
|
||||||
import { createHash } from 'crypto';
|
import { createHash } from 'crypto';
|
||||||
@ -71,6 +71,6 @@ function createSocketDir() {
|
|||||||
|
|
||||||
export function removeSocketDir() {
|
export function removeSocketDir() {
|
||||||
try {
|
try {
|
||||||
rmdirSync(socketDir, { recursive: true });
|
rmSync(socketDir, { recursive: true, force: true });
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user