Skip to content
Snippets Groups Projects
Commit 90b020cf authored by Joas Schilling's avatar Joas Schilling
Browse files

Delete when it is a directory...

parent fbcdf170
No related branches found
No related tags found
No related merge requests found
......@@ -908,7 +908,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
for ($i=0; $i<5; $i++){
self::removeFile("../../core/skeleton/", "textfile" . "$i" . ".txt");
}
if (!is_dir("../../core/skeleton/FOLDER")) {
if (is_dir("../../core/skeleton/FOLDER")) {
rmdir("../../core/skeleton/FOLDER");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment