Page MenuHomeFeedback Tracker

MakeDirectory does not work and max file number per directory is at 500
Closed, DuplicatePublic

Description

I try to save some stats per player in $profile in json files named after their steam Id to easily find them

problem is, after 500 files, the script unexpectedly says i have too many files in my directory.

This is for sure an engine limitation, as the Operating System (windows) allows 4.6 billion files per directory in ntfs

I tried to create a hashing algorithm with makedirectory, but
a) 500 is really a bad number for hashing maximum
b) it does not work, as it does not create any directory in $profile

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Windows 2016 Server
Category
Server
Steps To Reproduce

create 500 files in a directory (e.g. $profile/players)
try to create another one
error occurs in the script

try to use MakeDirectory()
returns integer 0
does not create any directory.

Additional Information

This would be really helpful, if even as a setting in dayz config, to up the 500 to another value.
it makes it currently hard to maintain custom data per player as 500 unique players is reached quite fast.

using larger files is also problematic, and there is no db methods yet.

Event Timeline

g4borg created this task.May 16 2019, 6:40 PM
Geez added a subscriber: rVn.