|
@@ -35,7 +35,7 @@ public class NowFileChangeProc {
|
|
// if(file.renameTo(file)) {
|
|
// if(file.renameTo(file)) {
|
|
// msg += "\r\n add to queue";
|
|
// msg += "\r\n add to queue";
|
|
String absolutePath = file.getAbsolutePath();
|
|
String absolutePath = file.getAbsolutePath();
|
|
- // if(absolutePath.endsWith("txt")) {
|
|
|
|
|
|
+ if(absolutePath.endsWith("dcm")) {
|
|
Timer timer = new Timer();
|
|
Timer timer = new Timer();
|
|
timer.schedule(new TimerTask() {
|
|
timer.schedule(new TimerTask() {
|
|
|
|
|
|
@@ -45,7 +45,7 @@ public class NowFileChangeProc {
|
|
UploadsQueue.addCurrent(new File(absolutePath));
|
|
UploadsQueue.addCurrent(new File(absolutePath));
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
- // }
|
|
|
|
|
|
+ }
|
|
Configs.sysLog.info(msg+"---------监听新文件夹创建");
|
|
Configs.sysLog.info(msg+"---------监听新文件夹创建");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -59,7 +59,7 @@ public class NowFileChangeProc {
|
|
public void modify(File file) {
|
|
public void modify(File file) {
|
|
String msg = "File update \t" + file.getAbsolutePath();
|
|
String msg = "File update \t" + file.getAbsolutePath();
|
|
String absolutePath = file.getAbsolutePath();
|
|
String absolutePath = file.getAbsolutePath();
|
|
- // if(absolutePath.endsWith("txt")) {
|
|
|
|
|
|
+ if(absolutePath.endsWith("dcm")) {
|
|
Timer timer = new Timer();
|
|
Timer timer = new Timer();
|
|
timer.schedule(new TimerTask() {
|
|
timer.schedule(new TimerTask() {
|
|
|
|
|
|
@@ -69,7 +69,7 @@ public class NowFileChangeProc {
|
|
UploadsQueue.addCurrent(new File(absolutePath));
|
|
UploadsQueue.addCurrent(new File(absolutePath));
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
- // }
|
|
|
|
|
|
+ }
|
|
Configs.sysLog.info(msg+"---------监听新文件夹移动");
|
|
Configs.sysLog.info(msg+"---------监听新文件夹移动");
|
|
}
|
|
}
|
|
});
|
|
});
|