作用
按照指定的方式获取文件或者目录的信息。
使用
get_filename_component(<variable> <filename> <component>)
variable:
用于保存提取的信息。
filename:
指定路径的文件或者目录。
component:

component
DIRECTORY:
提取文件或者目录的父目录;
按照指定的方式获取文件或者目录的信息。
get_filename_component(<variable> <filename> <component>)
variable:
用于保存提取的信息。
filename:
指定路径的文件或者目录。
component:
DIRECTORY:
提取文件或者目录的父目录;