如何从Windows批量导入中导入zip文件?

时间:2017-12-05 16:07:27

标签: dspace

我试图通过批量导入dspace在Windows中导入zip文件,但是窗口无法识别文件中的DIR:

显然它输出两倍的文件路径:我如何解决这个问题?

C:\ dspace5 \ bin> dspace import -a -e admin -c capes / 218424 -s C:\ Users \ admins \ Desktop \ projects \ community \ migration \ bitstreams -z SimpleArchiveFormat.zip -m mapfilesCOM

Using DSpace installation in: C:\dspace5
Destination collections:
Owning  Collection: materials
java.io.FileNotFoundException: C:\Users\admins\Desktop\projects\community\migration\bitstreams\C:\Users\admins\Desktop\projects\community\migration\bitstreams\SimpleArchiveFormat.zip (The syntax of the file name, directory name, or volume label is incorrect)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2021)
        at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:1987)
        at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2098)
        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:490)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
java.io.FileNotFoundException: C:\Users\admins\Desktop\projects\community\migration\bitstreams\C:\Users\admins\Desktop\projects\community\migration\bitstreams\SimpleArchiveFormat.zip (The syntax of the file name, directory name, or volume label is incorrect)

Deleting temporary zip directory: /dspace5/imports
Started: 1512488260816
Ended: 1512488268886

Elapsed time: 8 secs (8070 msecs)

1 个答案:

答案 0 :(得分:2)

我相信您的问题是某些DSpace版本中已知(且已修复)的错误:https://jira.duraspace.org/browse/DS-3585

您应该升级到更新的版本,或者重现问题和DSpace的Git中描述的修补程序。

祝你好运!