Bug #4695
closedFile.move with OVERWRITE flag
100%
Description
Using OVERWRITE flag with File.move:
file.move(toUrl, Flags.OVERWRITE.getValue());
gives the exception:
[main] WARN impl.SagaFactoryImpl - Failed to load engine properties, using defaults [.\etc\jsaga-config.properties (The system cannot find the path specified)]
BadParameter: Flags not allowed for this method: 1
at fr.in2p3.jsaga.impl.namespace.FlagsHelper.allowed(FlagsHelper.java:39)
at fr.in2p3.jsaga.impl.namespace.FlagsHelper.allowed(FlagsHelper.java:27)
at fr.in2p3.jsaga.impl.namespace.AbstractSyncNSEntryImpl.removeSync(AbstractSyncNSEntryImpl.java:278)
at fr.in2p3.jsaga.impl.file.AbstractSyncFileImpl.removeSync(AbstractSyncFileImpl.java:170)
at fr.in2p3.jsaga.impl.namespace.AbstractSyncNSEntryImpl.moveSync(AbstractSyncNSEntryImpl.java:269)
at fr.in2p3.jsaga.impl.namespace.AbstractNSEntryImpl.move(AbstractNSEntryImpl.java:254)
at fr.in2p3.jsaga.impl.file.AbstractNSEntryImplWithStream.move(AbstractNSEntryImplWithStream.java:105)