You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I love love2d, it is a great engine! Issue love.filesystem.getDirectoryItems() won't list any files inside a symlink, except if it is at least one level in. Symlinks are enabled. I am using love 11.4 on Windows 10.
Reproduce
Create a new folder
Create a file with subdirectories: real/inner/test.txt
Create a directory symlink with mklink /D sym real
Create main.lua
print("Real dir: "..#love.filesystem.getDirectoryItems'real')
print("Real dir inner: "..#love.filesystem.getDirectoryItems'real/inner')
print("Sym dir: "..#love.filesystem.getDirectoryItems'sym')
print("Sym dir inner: "..#love.filesystem.getDirectoryItems'sym/inner')
love.event.quit()
Run lovec .
Expected output:
Real dir: 1
Real dir inner: 1
Sym dir: 1
Sym dir inner: 1
Actual output
Real dir: 1
Real dir inner: 1
Sym dir: 0
Sym dir inner: 1
The text was updated successfully, but these errors were encountered:
Due to a bug in LÖVE that goes down to PhysFS[1], a symlinked directory
isn't recognized as a directory, so symlinked plugin directories won't
be loaded.
To fix this, just load it anyway if it's a symlink. If the symlink turns
out to be a file, that's harmless because it will just be loaded as an
unknown plugin that does nothing.
[1]: love2d/love#1938
First of all, I love love2d, it is a great engine!
Issue
love.filesystem.getDirectoryItems()
won't list any files inside a symlink, except if it is at least one level in. Symlinks are enabled. I am using love 11.4 on Windows 10.Reproduce
real/inner/test.txt
mklink /D sym real
lovec .
Expected output:
Actual output
The text was updated successfully, but these errors were encountered: