GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Change file name adapter so it runs on directories. · Issue #119 · Ktt-Development/simplehttpserver
This repository was archived by the owner on Jul 31, 2022. It is now read-only.
This repository was archived by the owner on Jul 31, 2022. It is now read-only.
Change file name adapter so it runs on directories. #119Copy link Copy link Closed DescriptionPrerequisitesIf all checks are not passed then the request will be closed.
ProposalDescribe the feature that should be added. Change adapter so it runs on all files. simplehttpserver/src/main/java/com/kttdevelopment/simplehttpserver/handler/DirectoryEntry.java Lines 149 to 151 in 63aa926
for(final File file : Objects.requireNonNullElse(parentFile.listFiles(), new File[0])){
- if(fileName.equals(file.isDirectory() ? file.getName() : adapter.getName(file))) // use adapter name only if not a directory
+ if(fileName.equals(adapter.getName(file))
return file;ReasoningExplain why this feature should be added. Developers may want to use adapter names against directories If this change is made existing developers can simply use (below) to replicate the previous behavior. @Override public final String getName(final File file){ return file.isDirectory() ? file.getName() : super.getName(file); } Activity
MetadataMetadataAssigneesLabelsfeature requestRequest a featureRequest a feature TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |