-Add warning if about to mkpath but path exists as a non-directory

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8863 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-02-16 20:56:38 +00:00
parent ddd1a62584
commit 01b720e92b

View File

@ -3948,6 +3948,10 @@ sub cpNetbootImages {
}
if (! -d $destDir) {
if ( -e $destDir ) {
xCAT::SvrUtils::sendmsg([1,"Could not copy netboot contents to $destDir, it exists but is not currently a directory"], $output_handler);
return;
}
mkpath($destDir);
}