Where can I find information on how to create and access subfolders that are specific to my plugin?
All the examples that I have seen have my JSON file going into data folder.
I want to utilize sub-folders for both config and data.
Thanks!
Where can I find information on how to create and access subfolders that are specific to my plugin?
All the examples that I have seen have my JSON file going into data folder.
I want to utilize sub-folders for both config and data.
Thanks!
Just add a folder name and slash in front of your filename
Interface.Oxide.DataFileSystem.WriteObject("SubDirectory/YourDataFileName", data);
I am not totally sure about the possibilities with config files.
Edit: fixed a typo due to quick copy-pasting an example
Pretty sure either direction would work, at least on Windows servers. You can also get the OS-specific separator from C#.wfsiglerThank you both for the help!!
Who would have thought "UNIX based".