--- /dev/null
+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