Guest User

Fucking Aussin

a guest
Sep 24th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public static String findcachedir()
  2. {
  3. boolean exists = (new File(System.getProperty("C:/") + "/TimoCache/")).exists();
  4. if (exists) {
  5. System.out.println("Directory exists");
  6. return System.getProperty("C:/") + "/TimoCache/";
  7. } else {
  8. File f = new File(System.getProperty("C:/") + "/TimoCache/");
  9. f.mkdir();
  10. System.out.println("Directory doesnt exist, making directory");
  11. return System.getProperty("C:/") + "/TimoCache/";
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment