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
returns isDir = false for a symlink. But if i adapt the code and handle every entry like a directory, it opens the symlink as expected and i can upload a file within.
Can this be fixed easily?
The text was updated successfully, but these errors were encountered:
bool isDirectory(const FileSystemEntry& entry) {
// Check if it's a directory using attributes
if (entry.attributes & FS_FILE_ATTR_DIRECTORY) {
return true;
}
// Check if it's a symlink
if (entry.attributes & FS_FILE_ATTR_SYMLINK) {
struct stat info;
// Resolve the symlink and check if the target is a directory
if (stat(entry.path.c_str(), &info) == 0 && S_ISDIR(info.st_mode)) {
return true;
}
}
return false;
}
It would be a simple solution to upload custom images for the tonies.custom.json if the custom_img folder would be available within the library.
it could be done within the docker compose file
after volumes:
I created a symlink which does this, but in the gui its not recognized as a directory.
http://teddycloud.local/api/fileIndexV2?path=/&special=library
returns isDir = false for a symlink. But if i adapt the code and handle every entry like a directory, it opens the symlink as expected and i can upload a file within.
Can this be fixed easily?
The text was updated successfully, but these errors were encountered: