gpt4 book ai didi

linux - 获取符号链接(symbolic link)完整路径

转载 作者:太空宇宙 更新时间:2023-11-04 09:12:34 25 4
gpt4 key购买 nike

<分区>

我想获取符号链接(symbolic link)的完整路径。

考虑以下几点:

/path/to/folder/link.file 链接到 /path/to/folder/original.txt

我需要获取链接的完整路径,而不是原始文件,例如:

$fullpath = abs_path("link.file");

将返回 /path/to/folder/link.file 而不是 /path/to/folder/original.txt

我尝试阅读但无法找到可行的解决方案..

澄清一下,链接文件本身的绝对路径

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com