我无法弄清楚如何通过Filemaker计算得到图像的目录。
例如,从路径:
file://Macintosh HD/Users/user1/Documents/Clients/client1/project/phase/research/test6/images/subdir/090420/090422.jpg
我只需要090420
放入一个字段。
任何人都可以解释我会怎么做吗?
答案 0 :(得分:3)
我如何只获得图像的目录
要获取文件的封闭目录(即给定路径的倒数第二步),请尝试:
Let (
steps = Substitute ( path ; "/", ¶ )
;
GetValue ( steps ; ValueCount ( steps ) - 1 )
)