i want to know if a file exists, here is my code :
------------------------
File dd = new File("G:/SQL.LOG");
boolean f = dd.isFile();
out.println("dan = " + f);
------------------------------
(the file sql.log exists)
i can see :" dan = true"
that's logic
but when i change the code:
------------------------------
File dd = new File("G:/act_tma/test.log");
out.println(rep_tableau + nom_tableau);
boolean f = dd.isFile();
out.println("dan = " + f);
-----------------------------
(the file test.log exists)
i can see: "dan = false"
what is not logic...
have you an idea???
PS : G:/ is connected to a network
L'alcool tue lentement. On s'en fout. On n'est pas pressés.
f.exists() verify if the file indicated by this path exists and
f.isFile() verify if the file exists and is a norma file (is not a directory and satisfy other conditions which dependts of your system)
See Java API documentation
normal I mean (I ate an "l")
I don't really know what exactly means "normal file" but I think that a "system file" is not a regular file for example. I hope I don't mistake !
Bookmarks