Author Topic: stop using mkdir for data folders  (Read 71 times)

mmm545

  • First Member
  • Newbie
  • *
  • Posts: 1
  • Karma: 0
stop using mkdir for data folders
« on: February 24, 2021, 04:30:32 pm »
don't use @mkdir($this->getDataFolder()); for making a data folder for your plugin, pocketmine already makes one for you

Share on Facebook Share on Twitter

Agree Agree x 1 View List

KygekDev

  • Administrator
  • Newbie
  • *****
  • Posts: 6
  • Karma: 0
  • Location: Somewhere on Earth
    • KygekTeam Website
Re: stop using mkdir for data folders
« Reply #1 on: February 24, 2021, 04:33:03 pm »
Thanks for the tip!

Also PHP 8 won't suppress fatal errors when using @ operator anymore. So this feature might break some plugins after upgrading to PHP 8.
Founder & Leader of KygekTeam
=======
Join KygekTeam Discord server for latest annoucements and discussions!
http://discord.kygekteam.org
https://discord.gg/CXtqUZv

daviddgtnt

  • Trial Staff
  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: stop using mkdir for data folders
« Reply #2 on: March 10, 2021, 08:57:16 am »
Thanks for the tip!