d-a-v / ESPWebDAV

macOS, linux, windows: Natively sharing files - port 80 is shared
Other
40 stars 9 forks source link

Some files are not visible in subdirectory but present in serial command #6

Closed luc-github closed 3 years ago

luc-github commented 3 years ago

Hi I am using the today Git version of your code with today git version of esp8266 I am using on nodemcu but using esp8266 settings and I have set 4M flash with 2M FS and I am using 160MHz speed others are default I use sample code simple.ino - I have enable debug but nothing poped up |

I have some files already presents on FS and also subdirectory with file inside using serial command I have:

>>>>>>>> dir /
Capture.PNG                                0MiB     76KiB 77569
readme.md                                  0MiB      0KiB 6
[dav]
    Capture.PNG                                0MiB     76KiB 77569
<<<<<<<< dir
interactive: F/ormat D/ir C/reateFile
Heap stats: free heap: 44064 - max block: 43104 - fragmentation: 3%
interactive: F/ormat D/ir C/reateFile
Heap stats: free heap: 44064 - max block: 43104 - fragmentation: 3%

All files are well seen

when under windows I mount the drive seems ok at root: image

but not in subdiretory: image

if I try to copy another file - it is seen:

>>>>>>>> dir /
Capture.PNG                                0MiB     76KiB 77569
readme.md                                  0MiB      0KiB 6
[dav]
    Capture.PNG                                0MiB     76KiB 77569
    espconf.ini                                0MiB      2KiB 2239
<<<<<<<< dir
interactive: F/ormat D/ir C/reateFile
Heap stats: free heap: 42056 - max block: 41000 - fragmentation: 3%
interactive: F/ormat D/ir C/reateFile
Heap stats: free heap: 42056 - max block: 41000 - fragmentation: 3%

image

but not the one with same name

I have copied the readme.md in sub directory and it is seen, if I refresh the new file disapear and the previously not visible appear, and if I try to copy again I got : image Which confirm it is present

luc-github commented 3 years ago

For what I can see by uploading new files and refresh the issue is actually the first listed file is not visible I have uploaded 1.txt 2.txt 0.txt and it is always the first in alphabetical order which is not visible

luc-github commented 3 years ago

solution is same as https://github.com/d-a-v/ESPWebDAV/issues/8#issuecomment-762794211 because it solve also this issue