|
18 | 18 | * @see FileHandler
|
19 | 19 | * @see FileEntry
|
20 | 20 | * @since 02.00.00
|
21 |
| - * @version 03.05.03 |
| 21 | + * @version 03.05.04 |
22 | 22 | * @author Ktt Development
|
23 | 23 | */
|
24 | 24 | class DirectoryEntry {
|
@@ -84,7 +84,7 @@ public final FileVisitResult visitFile(final Path path, final BasicFileAttribute
|
84 | 84 |
|
85 | 85 | try{
|
86 | 86 | preloadedFiles.put(
|
87 |
| - ContextUtil.joinContexts(false,false,relative, adapter.getName(file)), |
| 87 | + ContextUtil.joinContexts(true,false,relative, adapter.getName(file)), |
88 | 88 | new FileEntry(file, adapter, loadingOption, true)
|
89 | 89 | );
|
90 | 90 | }catch(final UncheckedIOException ignored){ }
|
@@ -117,7 +117,7 @@ public final FileVisitResult visitFile(final Path path, final BasicFileAttribute
|
117 | 117 |
|
118 | 118 | try{
|
119 | 119 | preloadedFiles.put(
|
120 |
| - ContextUtil.joinContexts(false,false,relative,adapter.getName(file)), |
| 120 | + ContextUtil.joinContexts(true,false,relative,adapter.getName(file)), |
121 | 121 | new FileEntry(file, adapter, ByteLoadingOption.PRELOAD)
|
122 | 122 | );
|
123 | 123 | }catch(final RuntimeException ignored){ }
|
@@ -166,8 +166,8 @@ private Consumer<WatchEvent<?>> createWatchServiceConsumer(final Path path){
|
166 | 166 | final WatchEvent.Kind<?> type = event.kind();
|
167 | 167 |
|
168 | 168 | final String top2sub = ContextUtil.getContext(directoryPath.relativize(path).toString(),true,false); // the relative path between the top level directory and sub directory
|
169 |
| - final String context = ContextUtil.joinContexts(false,false,top2sub,adapter.getName(relFile)); // the file key |
170 |
| - final File file = new File(directoryPath + ContextUtil.joinContexts(false,false,top2sub,relFile.getName())); // the actual referable file |
| 169 | + final String context = ContextUtil.joinContexts(true,false,top2sub,adapter.getName(relFile)); // the file key |
| 170 | + final File file = new File(ContextUtil.joinContexts(true,false,directoryPath.toString(),top2sub,relFile.getName())); // the actual referable file |
171 | 171 | final Path target = file.toPath();
|
172 | 172 |
|
173 | 173 | if(!file.isDirectory()) // File#isFile does not work
|
|
0 commit comments