|
|
@@ -129,16 +129,11 @@ public class FileMetaTest {
|
|
|
int total = 1;
|
|
|
@Test
|
|
|
public void deleteFile() throws IOException, InterruptedException {
|
|
|
- String baseDir = "/home/reghao/mnt1/spider/bili/img/vidcover";
|
|
|
- //baseDir = "/run/media/reghao/7c43343d-c1e2-4e68-bc18-89bd3f61b0c8/cover";
|
|
|
- //baseDir = "/home/reghao/mnt1/spider/bili/img/avatar";
|
|
|
+ String baseDir = "";
|
|
|
Path path = Path.of(baseDir);
|
|
|
//walkDir(path);
|
|
|
|
|
|
- threadPool.submit(new Task("/home/reghao/mnt1/spider/bili/img/avatar"));
|
|
|
- threadPool.submit(new Task("/run/media/reghao/7c43343d-c1e2-4e68-bc18-89bd3f61b0c8/cover"));
|
|
|
- threadPool.submit(new Task("/run/media/reghao/7c43343d-c1e2-4e68-bc18-89bd3f61b0c8/avatar"));
|
|
|
-
|
|
|
+ threadPool.submit(new Task(baseDir));
|
|
|
Thread.sleep(3600_000*24*7);
|
|
|
}
|
|
|
|
|
|
@@ -204,7 +199,7 @@ public class FileMetaTest {
|
|
|
String absolutePath = dataBlock.getAbsolutePath();
|
|
|
int idx = absolutePath.lastIndexOf("/");
|
|
|
String parent = absolutePath.substring(0, idx);
|
|
|
- String relativeDir = parent.replace("/opt/oss/disk/13f654c8-af87-4710-aac9-7aa086c99aec", "");
|
|
|
+ String relativeDir = parent.replace("", "");
|
|
|
dataBlock.setRelativeDir(relativeDir);
|
|
|
|
|
|
/*String contentId = dataBlock.getContentId();
|