in reply to is there a file/directory?

for a file u can use print -f 'filename'; for directory check u can use print -d 'directory name';