We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io.readdir returns the files in a different order across Windows and Linux builds With no way to control the order as it was with dir/ls
io.readdir
dir
ls
Same result on both OSs
local files = io.readdir("@Res/stream/") print(files) -- same result with a for ipairs loop
Unknown
ScRT: Lua
Server 12508 windows & linux
On windows it returns a-Z
[ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_001.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_002.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_003.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_004.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_005.yvr [ script:racegm] wr_dezikawa_uphill_ta_L1_FUTO2_001.yvr [ script:racegm] xr_dezikawa_downhill_ta_L1_FUTO2_004.ytr
On linux? I have no idea
[ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_005.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_004.yvr [ script:racegm] wr_dezikawa_uphill_ta_L1_FUTO2_001.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_002.yvr [ script:racegm] xr_dezikawa_downhill_ta_L1_FUTO2_004.ytr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_003.yvr [ script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_001.yvr
I attached a stat * output for all the files, these have been created on windows and uploaded on bulk to a vps
stat *
statall.log
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
io.readdir
returns the files in a different order across Windows and Linux buildsWith no way to control the order as it was with
dir
/ls
Expected result
Same result on both OSs
Reproduction steps
Importancy
Unknown
Area(s)
ScRT: Lua
Specific version(s)
Server 12508 windows & linux
Additional information
Actual examples
On windows it returns a-Z
On linux? I have no idea
I attached a
stat *
output for all the files, these have been created on windows and uploaded on bulk to a vpsstatall.log
The text was updated successfully, but these errors were encountered: