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?
Check Contents of Data Directory Folder - Retrieve File Names
Discussion in 'Rust Discussion' started by Absolut, Nov 19, 2016.
-
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.
-
-
Wulf Community Admin