1. I am trying to modify my ImageLibrary to allow players to place local images in the Data Directory and for the plugin to check each file in the directory and process it. I am getting an error saying:

    (UnauthorizedAccessException: System access is restricted, you are not allowed to use System.IO.DirectoryInfo)

    Is there any functions or other methods I can use to simply check a folder in the data directory and (1) see if it has files, (2) get the name of each file.. to process?
     
  2. Wulf

    Wulf Community Admin

    You'd have to use methods the game provides for storing the images. The Datafile API is only intended for storing and reading persistent JSON files.
     
  3. Gotcha, so no specific way to check for .pngs or .jpgs in a folder within the oxide data directory?
     
  4. Wulf

    Wulf Community Admin

    Not that I know of aside from why Rust may have.