SysTutorials Forums QA How to test a file or directory exists in Go?

How to test a path (a file or directory exists) in golang?

In Bash, the [ -e ] tests can test whether a file or a directory exist. What are the corresponding Go ways for the test?

Reply To: How to test a file or directory exists in Go?
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: