Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Removes directory
<?php rmdir(string $directory, ?resource $context = null): bool
<?php         unset($items);



        if (! $preserve) {

            @rmdir($directory);

        }



        return true;
<?php             'visibility' => 'public',

        ]));



        rmdir(__DIR__.'/../../my-custom-path');

    }



    public function testCanBuildReadOnlyDisks()
<?php         fclose($handle);



        unlink(__DIR__.'/../../my-custom-path/path.txt');

        rmdir(__DIR__.'/../../my-custom-path');

    }



    public function testCanBuildScopedDisks()
<?php             $this->assertEquals('file content', $local->get('path-prefix/dirname/filename.txt'));

            $local->deleteDirectory('path-prefix');

        } finally {

            rmdir(__DIR__.'/../../to-be-scoped');

        }

    }
<?php             $this->assertEquals('private', $scoped->getVisibility('dirname/filename.txt'));

        } finally {

            unlink(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix/dirname');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix');

            rmdir(__DIR__.'/../../to-be-scoped');

        }
<?php         } finally {

            unlink(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix/dirname');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix');

            rmdir(__DIR__.'/../../to-be-scoped');

        }

    }
<?php             unlink(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix/dirname');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix');

            rmdir(__DIR__.'/../../to-be-scoped');

        }

    }
<?php             $this->assertEquals(file_get_contents(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt'), 'file content');

        } finally {

            unlink(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix/dirname');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix');

            rmdir(__DIR__.'/../../to-be-scoped');

        }
<?php         } finally {

            unlink(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix/dirname');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix');

            rmdir(__DIR__.'/../../to-be-scoped');

        }

    }
<?php             unlink(__DIR__.'/../../to-be-scoped/path-prefix/dirname/filename.txt');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix/dirname');

            rmdir(__DIR__.'/../../to-be-scoped/path-prefix');

            rmdir(__DIR__.'/../../to-be-scoped');

        }

    }

}
<?php         $this->assertSame('/mix/versioned.css', $result->toHtml());



        unlink($manifest);

        rmdir($directory);

    }



    public function testMixManifestDirectoryMissingStartingSlashHasItAdded()
<?php         $this->assertSame('/mix/versioned.css', $result->toHtml());



        unlink($manifest);

        rmdir($directory);

    }



    public function testMixHotModuleReloadingGetsUrlFromFileWithHttps()
<?php         $this->assertSame('//laravel.com/docs/unversioned.css', $result->toHtml());



        unlink($path);

        rmdir($directory);

    }



    public function testMixHotModuleReloadingGetsUrlFromFileWithManifestDirectoryAndHttp()
<?php         $this->assertSame('//laravel.com/docs/unversioned.css', $result->toHtml());



        unlink($path);

        rmdir($directory);

    }



    public function testMixHotModuleReloadingUsesLocalhostIfNoHttpScheme()
<?php         $this->assertSame('//localhost:8080/unversioned.css', $result->toHtml());



        unlink($path);

        rmdir($directory);

    }



    protected function makeHotModuleReloadFile($url, $directory = '')