-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw IOException for all other reparse points.
- Loading branch information
1 parent
53e2ad8
commit 9d17d9c
Showing
1 changed file
with
3 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,9 @@ private TarEntry ConstructEntryForWriting(string fullPath, string entryName, Fil | |
} | ||
else | ||
{ | ||
// Treat any other reparse point as regular file | ||
entryType = TarHelpers.GetRegularFileEntryTypeForFormat(Format); | ||
// All other reparse points are not supported since they cannot be | ||
// represented in a tar file using the existing entry types. | ||
throw new IOException(SR.Format(SR.TarUnsupportedFile, fullPath)); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
billfreist
|
||
} | ||
} | ||
else if (isDirectory) | ||
|
This is going to cause the same issue to happen with the duplication reparse point that caused my initial issue. Theres a handful of valid reparse points that should simply treat the file as a normal file, such as dedup and OneDrive, for example.