Skip to content

Commit

Permalink
Merge pull request #2884 from D4N14L/user/danade/FixAlreadyExists
Browse files Browse the repository at this point in the history
[node-core-library] Add support for `alreadyExistsBehavior` for symlinks and junctions
  • Loading branch information
octogonz authored Sep 11, 2021
2 parents 4904af2 + cf3e4bd commit b2aa54f
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 71 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@rushstack/node-core-library",
"comment": "Add support for AlreadyExistsBehavior in symlink and junction scenarios",
"type": "patch"
}
],
"packageName": "@rushstack/node-core-library",
"email": "3473356+D4N14L@users.noreply.github.com"
}
2 changes: 2 additions & 0 deletions common/reviews/api/node-core-library.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ export class FileSystem {
static getStatistics(path: string): FileSystemStats;
static getStatisticsAsync(path: string): Promise<FileSystemStats>;
static isErrnoException(error: Error): error is NodeJS.ErrnoException;
static isExistError(error: Error): boolean;
static isFileDoesNotExistError(error: Error): boolean;
static isFolderDoesNotExistError(error: Error): boolean;
static isNotExistError(error: Error): boolean;
static isUnlinkNotPermittedError(error: Error): boolean;
static move(options: IFileSystemMoveOptions): void;
static moveAsync(options: IFileSystemMoveOptions): Promise<void>;
static readFile(filePath: string, options?: IFileSystemReadFileOptions): string;
Expand Down
Loading

0 comments on commit b2aa54f

Please sign in to comment.