rmdir
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Removes directory
rmdir
(
string $directory
, ?
resource $context
=
null
):
bool
}
if (!
$preserve
) {
@
rmdir
(
$directory
);
}
return
true
;
src/Illuminate/Filesystem/Filesystem.php
'visibility'
=>
'public'
,
]));
rmdir
(
__DIR__
.
'/../../my-custom-path'
);
}
}
tests/Filesystem/FilesystemManagerTest.php
$this
->
assertSame
(
'/mix/versioned.css'
,
$result
->
toHtml
());
unlink
(
$manifest
);
rmdir
(
$directory
);
}
public function
testMixManifestDirectoryMissingStartingSlashHasItAdded
()
tests/Foundation/FoundationHelpersTest.php
$this
->
assertSame
(
'/mix/versioned.css'
,
$result
->
toHtml
());
unlink
(
$manifest
);
rmdir
(
$directory
);
}
public function
testMixHotModuleReloadingGetsUrlFromFileWithHttps
()
tests/Foundation/FoundationHelpersTest.php
$this
->
assertSame
(
'//laravel.com/docs/unversioned.css'
,
$result
->
toHtml
());
unlink
(
$path
);
rmdir
(
$directory
);
}
public function
testMixHotModuleReloadingGetsUrlFromFileWithManifestDirectoryAndHttp
()
tests/Foundation/FoundationHelpersTest.php
$this
->
assertSame
(
'//laravel.com/docs/unversioned.css'
,
$result
->
toHtml
());
unlink
(
$path
);
rmdir
(
$directory
);
}
public function
testMixHotModuleReloadingUsesLocalhostIfNoHttpScheme
()
tests/Foundation/FoundationHelpersTest.php
$this
->
assertSame
(
'//localhost:8080/unversioned.css'
,
$result
->
toHtml
());
unlink
(
$path
);
rmdir
(
$directory
);
}
protected function
makeHotModuleReloadFile
(
$url
,
$directory
=
''
)
tests/Foundation/FoundationHelpersTest.php
}
if (
file_exists
(
public_path
(
'build'
))) {
rmdir
(
public_path
(
'build'
));
}
}
tests/Foundation/FoundationViteTest.php