-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add copy operations, improve internals
- Loading branch information
Showing
13 changed files
with
749 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Alexandre Mutel. All rights reserved. | ||
// Licensed under the BSD-Clause 2 license. | ||
// See license.txt file in the project root for full license information. | ||
|
||
namespace XenoAtom.UnixTools; | ||
|
||
/// <summary> | ||
/// Defines the mode of a Unix <see cref="UnixDirectory.CopyEntry"/> operation. | ||
/// </summary> | ||
public enum UnixCopyMode | ||
{ | ||
/// <summary> | ||
/// Copy a single file or directory. | ||
/// </summary> | ||
Single, | ||
|
||
/// <summary> | ||
/// Copy a directory recursively. | ||
/// </summary> | ||
Recursive, | ||
|
||
/// <summary> | ||
/// Copy a directory recursively by creating a hard link for each file/device. | ||
/// </summary> | ||
RecursiveWithHardLinks, | ||
|
||
/// <summary> | ||
/// Copy a directory recursively while remapping existing hard links to copied files. | ||
/// </summary> | ||
Archive | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.