bitfield/script

Script:No method to judge file or dir

zjzjzjzj1874 opened this issue · 5 comments

When I use the testdata which script provided,pipe just show theirs name or path,is there any methods can I judge file or folder them are? Please show me how can I solve with script,tks!
Uploading image.png…

31669885804_ pic
Here is this pic.

Sorry, I'm not quite following what you're asking for. Could you show the code you're using and say what you'd like it to do?

WechatIMG86

In this pic above I used,`script.ListFiles(path)`just list all objects.If I want to differentiate between files and folders,is there another friendly ways,if exist pls show me,tks very much!

Ah, I see. At the moment there's no script-specific way to do that; you can use the standard library os.Stat on each path instead.

got it,tks very much. ^_^