Solved create folder

Discussion in 'BungeeCord Plugin Development' started by M7MDMCGamer, Apr 26, 2017.

  1. i want make a folder inside the plugin name

    and sorry if this wrong place for my question
  2. Choco


    Step 1: Create a File object that directs to the location you desire
    Step 2: Invoke File#mkdirs() to create the folder at that location
    Code (Java):
    File file = new File("path/to/your/folder/");
    This is just basic Java rather than anything to do with the Bukkit API. I recommend taking a read on File objects because they are rather useful. Also, this thread would likely go under the Spigot Plugin Development forum, unless you're creating a BungeeCord plugin, in which case you're in the right area :)
    • Useful Useful x 1