We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, if I use any directory in component, probably i want create absolute path with any $appDir, $wwwDir, $tempDir and add sub directory.
class Foo { /** @var string */ private $tempDir; public function __construct($tempDir) { // now $this->tempDir = $tempDir . DIRECTORY_SEPARATOR . 'foo'; \Nette\Utils\FileSystem::createDir($this->tempDir); // after $this->tempDir = \Nette\Utils\FileSystem::createDir($tempDir . DIRECTORY_SEPARATOR . 'foo'); } }
Is it possible? I can create PR.
The text was updated successfully, but these errors were encountered:
That looks like a misuse of return value to me.
Sorry, something went wrong.
This can be useful, but it also brings inconsistency and unpredictability.
No branches or pull requests
Description
Hi, if I use any directory in component, probably i want create absolute path with any $appDir, $wwwDir, $tempDir and add sub directory.
Use case
Is it possible? I can create PR.
The text was updated successfully, but these errors were encountered: