Skip to content

Commit b2aa54f

Browse files
authored
Merge pull request microsoft#2884 from D4N14L/user/danade/FixAlreadyExists
[node-core-library] Add support for `alreadyExistsBehavior` for symlinks and junctions
2 parents 4904af2 + cf3e4bd commit b2aa54f

File tree

3 files changed

+190
-71
lines changed

3 files changed

+190
-71
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/node-core-library",
5+
"comment": "Add support for AlreadyExistsBehavior in symlink and junction scenarios",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@rushstack/node-core-library",
10+
"email": "[email protected]"
11+
}

common/reviews/api/node-core-library.api.md

+2
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,11 @@ export class FileSystem {
222222
static getStatistics(path: string): FileSystemStats;
223223
static getStatisticsAsync(path: string): Promise<FileSystemStats>;
224224
static isErrnoException(error: Error): error is NodeJS.ErrnoException;
225+
static isExistError(error: Error): boolean;
225226
static isFileDoesNotExistError(error: Error): boolean;
226227
static isFolderDoesNotExistError(error: Error): boolean;
227228
static isNotExistError(error: Error): boolean;
229+
static isUnlinkNotPermittedError(error: Error): boolean;
228230
static move(options: IFileSystemMoveOptions): void;
229231
static moveAsync(options: IFileSystemMoveOptions): Promise<void>;
230232
static readFile(filePath: string, options?: IFileSystemReadFileOptions): string;

0 commit comments

Comments
 (0)