cannot get vfs File

Answered

Try to get the vfs file

val file = VfsUtil.findFileByIoFile(File("README.md"), true)

But the file was always null.

2 comments
Comment actions Permalink

Please always give some context. What are you trying to achieve? Where do you expect to find the file? Right now, it seems you try to locate file "README.md" in root of filesystem of your machine.

0
Comment actions Permalink

Thanks. The problem is the path. May the absolute path I tried was wrong which misled me.

0

Please sign in to leave a comment.