- File f = new File(String.format(FIRST_FILE_FORMAT_STR, dir, root, appender));\r
- File lock = new File(f.getAbsoluteFile()+".lock");\r
- if(f.exists()) {\r
- if(lock.exists()) {\r
- int i = 0;\r
- while ((f = new File(String.format(FILE_FORMAT_STR, dir, root, appender, i))).exists() &&\r
- (lock = new File(f.getAbsoluteFile()+".lock")).exists()) {\r
- ++i;\r
- }\r
- }\r
- }\r
+ File f = new File(String.format(FIRST_FILE_FORMAT_STR, dir, root, appender));\r
+ File lock = new File(f.getAbsoluteFile()+".lock");\r
+ if(f.exists()) {\r
+ if(lock.exists()) {\r
+ int i = 0;\r
+ while ((f = new File(String.format(FILE_FORMAT_STR, dir, root, appender, i))).exists() &&\r
+ (lock = new File(f.getAbsoluteFile()+".lock")).exists()) {\r
+ ++i;\r
+ }\r
+ }\r
+ }\r