Plugin specific data and config foldersSolved

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!

Generally you would just add the folder name to the path when creating and accessing.
Thanks but can you post an example?
I am not seeing any and I am not sure of the format.

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

Thank you both for the help!!

Who would have thought "UNIX based".
wfsigler
Thank you both for the help!!

Who would have thought "UNIX based".
Pretty sure either direction would work, at least on Windows servers. You can also get the OS-specific separator from C#.
Will have to try that.
I do know that it did not like the fully qualified text name that I copied from the browser.

Once again, I really appreciate the help that is given here!
Locked automatically