1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How can I create file inside folder

Discussion in 'Development' started by Hoyee, Oct 14, 2020.

  1. Hoyee

    Hoyee Baby Zombie

    Messages:
    126
    How can I do?

    If I make it with @mkdir, it's just like this.

    PluginData\PluginName\Example.yml

    So I want to make it like this.

    PluginData\PluginName\Some Folder\Example.yml

    And additionally, can I create folders or files in any location? For example, a wallpaper or a download folder.

    If I can't do that, what are the limitations of creating folders or files?
     
  2. KygekDev

    KygekDev Witch

    Messages:
    72
    GitHub:
    KygekDev
    Try to use:
    PHP:
    @mkdir($this->getDataFolder()."FolderName");
     
  3. KygekDev

    KygekDev Witch

    Messages:
    72
    GitHub:
    KygekDev
    You can, however it is not recommended.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.