Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit ab1a8fd

Browse files
committed
Fix #117
1 parent d15bc78 commit ab1a8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/handler/DirectoryEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public final FileEntry getFileEntry(final String path){
170170
final FileEntry entry = files.get(context);
171171
if(entry == null){ // add new entry if not already added and file exists
172172
final File file = getFile(path);
173-
return file != null && !file.exists()
173+
return file != null && file.exists()
174174
? files.put(context, new FileEntry(file, adapter, loadingOption))
175175
: null;
176176
}else if(!entry.getFile().exists()){ // remove entry if file no longer exists

0 commit comments

Comments
 (0)