Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

APEXMALHAR-2341 Remove vagrant tmp files also when output file is in… #497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ protected void finalizeFile(String fileName) throws IOException
if (statusName.endsWith(TMP_EXTENSION) && statusName.startsWith(destPath.getName())) {
//a tmp file has tmp extension always preceded by timestamp
String actualFileName = statusName.substring(0, statusName.lastIndexOf('.', statusName.lastIndexOf('.') - 1));
if (fileName.equals(actualFileName)) {
if (destPath.getName().equals(actualFileName)) {
LOG.debug("deleting stray file {}", statusName);
fs.delete(status.getPath(), true);
}
Expand Down