Ktt-Development/simplehttpserver

Folder that exists causes file handler to return null file.

Katsute opened this issue · 0 comments

This issue seems to be caused by line 173, but it is unclear if a change would break anything.

if(entry == null){ // add new entry if not already added and file exists
final File file = getFile(path);
return file != null && !file.exists()
? files.put(context, new FileEntry(file, adapter, loadingOption))
: null;