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

Merge branch 'malowe/dev/447' into 'dev'

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

See merge request !477
parents 163c0205 3d976b2f
Pipeline #1797 passed with stage
in 0 seconds
......@@ -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 =, 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