Check whether there are files or directories in Java
•
Java
This java tutorial from Oracle:
Why are they different? It has no further explanation Does anyone know more about it? Thank you in advance!
Solution
! Files. Exists() returns:
>True if the file does not exist or cannot be determined to exist > false if the file exists
Files. Notexists() returns:
>True if the file does not exist > false if the file exists or cannot be determined
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码