View source code
							
							
						
								Display the source code in std/file.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.file.getLinkAttributes
If the given file is a symbolic link, then this returns the attributes of the symbolic link itself rather than file that it points to. If the given file is not a symbolic link, then this function returns the same result as getAttributes.
						
				uint getLinkAttributes(R)
				(
				
				  R name
				
				)
				
				if (isSomeFiniteCharInputRange!R && !isConvertibleToString!R);
				
				
				uint getLinkAttributes(R)
				(
				
				  auto ref R name
				
				)
				
				if (isConvertibleToString!R);
						
					
				On Windows, getLinkAttributes is identical to getAttributes. It exists on Windows so that you don't have to special-case code for Windows when dealing with symbolic links.
Parameters
| Name | Description | 
|---|---|
| name | The file to get the symbolic link attributes of. | 
Returns
the attributes
Throws
FileException on error.
Example
import stdExample
if the file is no symlink, getLinkAttributes behaves like getAttributes
import stdExample
if the file is no symlink, getLinkAttributes behaves like getAttributes
import stdAuthors
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.