Page MenuHomeFeedback Tracker

FindFile not working on Linux Server
Assigned, UrgentPublic

Description

I recently had someone reporting a problem with my mods, which I have never seen before. After investigating, I found out he was running the DayZ Server on Linux and the problem was, that user json files could not be loaded from a folder. The whole folder would be scanned and all files should be loaded by my mod and the problem was, that FindFile would never return a valid FileHandle even when changing the permissions of the folder to 777 and trying some more possible fixes

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Category
General
Steps To Reproduce

Install a DayZ Server on Linux, create a folder in the profiles folder, add some files in there and try to use

string filename;
FileAttr attrs;
FileHandle handle = FindFiles("$profile:TestFolder/*", filename, attrs, FineFileMode.ANY);
if (handle == 0) Error("Could not open folder");
Print("Found: " + filename);
while (FindNextFile(handle, filename, attr))
    Print("Found: " + filename);
CloseFindFile(handle);

Event Timeline

LBmaster created this task.Sun, Jun 9, 6:09 PM
Geez changed the task status from New to Assigned.Mon, Jun 10, 10:48 AM
Geez assigned this task to dedmen.
Geez added a subscriber: Geez.