symlink
Symlinks, or symbolic links, are the Unix version of shortcut files (pointers to other files). inspectors can analyze the file objects (files and folders) that symlinks point to by using the standard file inspectors. The symlink inspectors, on the other hand, allow you to analyze the properties of a symlink itself, not just the underlying file. There are many properties that symlinks have in common with files, such as name, pathname, parent folder, and more. In addition, a symlink has a value corresponding to the file object it points to. You can also determine if the file is available or not.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
Creation
This is equivalent to symlink <binary_string>
inspector, but this returns a symlink object which is associated with the specified encoding. File objects created by deriving the symlink object will be read in the specified encoding.
Version | Platforms |
---|---|
9.5.5.193 | AIX, Debian, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
This is equivalent to symlink <string>
inspector, but this returns a symlink object which is to be read in the specified encoding. File objects created by deriving the symlink object will be read in the specified encoding.
Version | Platforms |
---|---|
9.5.5.193 | AIX, Debian, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns the symlink(s) in the specified folder, whether or not they are broken. Note: This behavior differs from looking for files in a folder. Although that returns links along with the files, it doesn't return broken links.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
Returns the time corresponding to the modification time of the specified symlink, not the file it points to.Example: modification time of symlink "/example/link" - Returns the time corresponding to the modification time of the given symlink, not the file it points to.Example: modification time of file "/example/link" - Returns the time corresponding to the file object that the symlink is pointing to.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns True
if the pathname pointed to by the specified symlink is available. Returns False
if the file object is missing or unavailable with the current permissions.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |