-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add symbolic link APIs #54253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add symbolic link APIs #54253
Changes from 1 commit
b63c7b7
b223304
2e822fd
32e196c
8ed2772
abbecf0
fc49855
86cbd19
480d3df
a6cd9da
6952eb7
797ace5
8639e3b
6bb1aa9
88bcadb
8701118
d10e00c
fa5ff40
6788db7
45392b4
38b6e88
a70cdef
cbcf7af
c43664a
9460264
bbaa35a
7e2eaa9
0d4250b
1a05a56
d656aed
adcca16
35165b0
9d2694b
c79df26
fc4241d
4881f2b
b377cb0
496487f
beaf701
a5986fb
b7ec269
7f37a86
3e36f72
6f5b99a
2d09f7e
4b5e133
82dc88a
48e1af1
0495f59
40cb737
995ead5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,8 +145,13 @@ public void CreateAsSymbolicLink(string pathToTarget) | |
| /// Gets the target of the specified link. | ||
| /// </summary> | ||
| /// <param name="returnFinalTarget"><see langword="true"/> to follow links to the final target; <see langword="false"/> to return the immediate next link.</param> | ||
| /// <returns>A <see cref="FileSystemInfo"/> instance if the link exists, independently if the target exists or not; <see langword="null"/> if a link does not exist | ||
| /// in <see cref="FullName"/>, or this instance does not represent a link.</returns> | ||
| /// <returns>A <see cref="FileSystemInfo"/> instance if the link exists, independently if the target exists or not; <see langword="null"/> if this file or directory is not a link.</returns> | ||
| /// <exception cref="IOException">The file or directory does not exist. | ||
| /// -or- | ||
| /// The link's file system entry type is inconsistent with that of its target. | ||
| /// -or- | ||
| /// Too many levels of symbolic links.</exception> | ||
| /// <remarks>When <paramref name="returnFinalTarget"/> is <see langword="true"/>, the maximum number of symbolic links that are followed are 40 on Unix.</remarks> | ||
| public FileSystemInfo? ResolveLinkTarget(bool returnFinalTarget = false) => | ||
|
||
| FileSystem.ResolveLinkTarget(FullPath, returnFinalTarget, this is DirectoryInfo); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.