git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorvasary.daniel <TFS\vasary.daniel>
Thu, 24 Feb 2022 14:27:29 +0000 (14:27 +0000)
committervasary.daniel <TFS\vasary.daniel>
Thu, 24 Feb 2022 14:27:29 +0000 (14:27 +0000)
server/hu.user.mediacube.executors.tests/.settings/org.eclipse.core.resources.prefs
server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportCheckDelete.java [new file with mode: 0644]

index 05672691f0bc97d02f9b028b0f93ae8d20392705..9b0d260f5dff7d8dcd47bc45474859a83f76c27c 100644 (file)
@@ -1,4 +1,5 @@
 eclipse.preferences.version=1\r
 encoding//src/hu/user/mediacube/executors/tests/SupportAttachLowres.java=UTF-8\r
+encoding//src/hu/user/mediacube/executors/tests/SupportCheckDelete.java=UTF-8\r
 encoding//src/hu/user/mediacube/executors/tests/SupportCheckItem.java=UTF-8\r
 encoding//src/hu/user/mediacube/executors/tests/SupportCreateItems.java=UTF-8\r
diff --git a/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportCheckDelete.java b/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportCheckDelete.java
new file mode 100644 (file)
index 0000000..3519fa7
--- /dev/null
@@ -0,0 +1,53 @@
+package hu.user.mediacube.executors.tests;\r
+\r
+import java.nio.file.Files;\r
+import java.nio.file.Path;\r
+import java.nio.file.Paths;\r
+import java.util.List;\r
+\r
+import org.junit.AfterClass;\r
+import org.junit.BeforeClass;\r
+import org.junit.Test;\r
+\r
+import user.jobengine.db.IItemManager;\r
+\r
+public class SupportCheckDelete {\r
+       protected static IItemManager manager = null;\r
+\r
+       @BeforeClass\r
+       static public void setUpConnection() {\r
+       }\r
+\r
+       @AfterClass\r
+       static public void tearDownConnection() {\r
+       }\r
+\r
+       @Test\r
+       public void process() throws Exception {\r
+               List<String> lines = Files.readAllLines(Paths.get("/opt/mediavivantis/torlendo.txt"));\r
+               StringBuffer sb = new StringBuffer();\r
+\r
+               for (String line : lines) {\r
+                       try {\r
+                               String[] tokens = line.split("\t");\r
+                               String filePath = "/" + tokens[1] + "/" + tokens[0];\r
+                               filePath = filePath.replace("/mnt/", "/10.11.200.50/");\r
+                               filePath = filePath.replace("/POLC/", "/polcmain/");\r
+                               filePath = filePath.replace("/", "\\");\r
+                               Path path = Paths.get(filePath);\r
+                               System.out.println(filePath + '\t' + path.toFile().exists());\r
+                               sb.append(filePath + '\t' + path.toFile().exists());\r
+                               sb.append("\r\n");\r
+\r
+                       } catch (Exception e) {\r
+                               System.out.println(lines.size());\r
+                       }\r
+               }\r
+               System.out.println(lines.size());\r
+               Files.write(Paths.get("/opt/mediavivantis/torolt.txt"), sb.toString().getBytes());\r
+//             System.out.println(\r
+//                             Paths.get("\\\\10.11.200.50\\polcmain\\FINISHED_SHOWS\\VASAROLT\\M21-039547-2.mxf").toFile().exists());\r
+\r
+       }\r
+\r
+}\r