from .FvImageSection import FvImageSection\r
from .Ffs import FdfFvFileTypeToFileType\r
from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
+import shutil\r
\r
## generate FFS from FILE\r
#\r
if FvName:\r
Str += FvName\r
OutputDir = os.path.join(GenFdsGlobalVariable.FfsDir, Str)\r
+ if os.path.exists(OutputDir):\r
+ shutil.rmtree(OutputDir)\r
if not os.path.exists(OutputDir):\r
os.makedirs(OutputDir)\r
\r