-
-
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.
Simplify target paths by leveraging newest dir behavior in dotnet-file
The trailing '/' on the URL now means "construct target path from here on", so we don't get duplicated directory structure.
- Loading branch information
Showing
70 changed files
with
131 additions
and
125 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,35 @@ | ||
namespace GitCredentialManager.Interop.Posix; | ||
|
||
// NOTE: delete the existing TryResolve* in the sync'ed file, make the class partial, | ||
// and this implementation will fix the build when upgrading. Note that links will | ||
// actually not be supported. | ||
partial class PosixFileSystem | ||
{ | ||
#if NETSTANDARD2_0 | ||
private static bool TryResolveFileLink(string path, out string target) | ||
{ | ||
target = null; | ||
return false; | ||
} | ||
|
||
private static bool TryResolveDirectoryLink(string path, out string target) | ||
{ | ||
target = null; | ||
return false; | ||
} | ||
#elif !NETFRAMEWORK | ||
private static bool TryResolveFileLink(string path, out string target) | ||
{ | ||
FileSystemInfo fsi = Polyfills.FileResolveLinkTarget(path, true); | ||
target = fsi?.FullName; | ||
return fsi != null; | ||
} | ||
|
||
private static bool TryResolveDirectoryLink(string path, out string target) | ||
{ | ||
FileSystemInfo fsi = Polyfills.DirectoryResolveLinkTarget(path, true); | ||
target = fsi?.FullName; | ||
return fsi != null; | ||
} | ||
#endif | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.