Commit 3d976b2f authored by Martin Lowe's avatar Martin Lowe 🇨🇦
Browse files

#447 - Add period to file name to omit uncompressed images from results

parent 163c0205
Pipeline #1798 passed with stage
......@@ -112,7 +112,7 @@ public class DefaultImageStoreService implements ImageStoreService {
// get the the full file name without extension given a format and base filename
String santizedName = ImageFileHelper.sanitizeFileName(fileName, format);
// for images whos file name starts with `<sanitized org name>.`, delete them
try (DirectoryStream<Path> ds = getFilesStartingWith(santizedName)) {
try (DirectoryStream<Path> ds = getFilesStartingWith(santizedName + '.')) {
// convert the stream to a list
List<Path> matchingPaths = StreamSupport.stream(ds.spliterator(), false).collect(Collectors.toList());
if (matchingPaths.isEmpty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment