tractordev / wanix

Experimental, local-first, web-native, Unix-like development environment
https://wanix.sh
MIT License
206 stars 11 forks source link

httpfs: hanging on non-existent files #75

Closed r-o-b-b-y closed 5 months ago

r-o-b-b-y commented 5 months ago

The 'invalid directory' error is not thrown for directories which do not exist, 3 levels deep plus. Observing the following:

/ ▶ cd /foobar
invalid directory

/ ▶ cd /sys/foobar      
invalid directory

/ ▶ cd  /sys/dev/foobar 
[ hangs here, no error ]
progrium commented 5 months ago

Another great find. This isn't related to depth as much the special httpfs filesystem mounted at /sys/dev by the dev server. Apparently it doesn't handle non-existent files well.