File is not a folder

This commit is contained in:
Ilia Rostovtsev
2016-04-04 14:05:23 +04:00
parent 915b6ec224
commit c176073339

View File

@@ -9,7 +9,7 @@ if(!$in{'name'}) {
&redirect("index.cgi?path=$path");
}
if (-e "$cwd/$in{'name'}") {
if (-f "$cwd/$in{'name'}") {
print_errors("$in{'name'} $text{'error_exists'}");
} else {
if (open my $fh, "> $cwd/$in{'name'}") {