How can I create file inside folder

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

  1. Hoyee

    Hoyee Baby Zombie

    Messages:
    122
    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. Kygekraqmak

    Kygekraqmak Witch

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

    Kygekraqmak Witch

    Messages:
    57
    GitHub:
    Kygekraqmak
    You can, however it is not recommended.
     

Share This Page

  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.