mf.setId(0);\r
mf.setMedia(mediaCubeMedia);\r
// mivel itt masolat keszul, nem allitunk at semmit\r
- // mf.setFileSize(fileSize);\r
- // mf.setDisableProxy(disableProxy);\r
+ // mf.setFileSize(fileSize);\r
+ // mf.setDisableProxy(disableProxy);\r
mf.add();\r
}\r
}\r
mediaCubeMedia.setArchived(new Timestamp(new Date().getTime()));\r
\r
/*\r
- try {\r
- BasicFileAttributes attr = Files.readAttributes(sourceFile.toPath(), BasicFileAttributes.class);\r
- mediaCubeMedia.setArchived(new Timestamp(attr.creationTime().toMillis()));\r
- } catch (IOException e) {\r
- logger.catching(e);\r
- }\r
+ * try { BasicFileAttributes attr = Files.readAttributes(sourceFile.toPath(),\r
+ * BasicFileAttributes.class); mediaCubeMedia.setArchived(new\r
+ * Timestamp(attr.creationTime().toMillis())); } catch (IOException e) {\r
+ * logger.catching(e); }\r
*/\r
mediaCubeMedia.modify();\r
}\r
"System is not configured properly, missing 'mediaFile' value in 'archiveItem' input parameter.");\r
}\r
if (!sourceMediaFile.exists()) {\r
- logger.error(marker, "Az {} állomány nem létezik vagy nem érhető el.", sourceMediaFile.getName());\r
- throw new IOException(String.format("Input file {} not exists or unreachable.", sourceMediaFile.getName()));\r
+ logger.error(marker, "A(z) {} állomány nem létezik vagy nem érhető el.", sourceMediaFile.getName());\r
+ throw new IOException(\r
+ String.format("Input file {} does not exist or unreachable.", sourceMediaFile.getName()));\r
}\r
tsmStore = manager.getSystemStore(false);\r
if (tsmStore == null) {\r