Commit 90b020cf authored by Joas Schilling's avatar Joas Schilling
Browse files

Delete when it is a directory...

parent fbcdf170
......@@ -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");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment