data(adf.example)
## This file exists:
adf.file.exists(adf.example, "df0:mods/mod.intro")
## But it doesn't exist as a directory
dir.exists.adf(adf.example, "df0:mods/mod.intro")
## This file also doesn't:
adf.file.exists(adf.example, "df0:idontexist")
Run the code above in your browser using DataLab