Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
3d976b2f
Commit
3d976b2f
authored
Jan 19, 2022
by
Martin Lowe
🇨🇦
Browse files
#447
- Add period to file name to omit uncompressed images from results
parent
163c0205
Pipeline
#1798
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/eclipsefoundation/react/service/impl/DefaultImageStoreService.java
View file @
3d976b2f
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment