You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (fileHeaderToBeChecked.getFileName().startsWith(fileHeaderToBeRenamed.getKey())) {
Every file headers that starts with the file to rename are matching, and so they get renamed by overwritting with the new name up to the len of the new name
Replacing startsWith method with equals should solve the problem
The text was updated successfully, but these errors were encountered:
suppose I have 2 entries :
abcd.tmp
abcd.tmp0
If I rename
abcd.tmp
tobcde.tmp
, thenabcd.tmp0
is also renamed tobcde.tmp0
!!!This is probably related to this line :
zip4j/src/main/java/net/lingala/zip4j/tasks/RenameFilesTask.java
Line 128 in c4c993c
Every file headers that starts with the file to rename are matching, and so they get renamed by overwritting with the new name up to the len of the new name
Replacing startsWith method with equals should solve the problem
The text was updated successfully, but these errors were encountered: