diff --git a/README.md b/README.md index 48bd5fa..0d1c368 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ With the following arguments meaning: ``` ## Changelog ``` +10/08/2016 1.00b --dest parameter processing fixed. 01/07/2016 1.00a cacheXXXX.bin header detection fixed. 27/06/2016 1.00 Initial release. ``` diff --git a/bmc-tools.py b/bmc-tools.py index 28fa7ba..c33527c 100755 --- a/bmc-tools.py +++ b/bmc-tools.py @@ -125,8 +125,7 @@ def b_export(self, dname): if not os.path.isdir(dname): self.b_log(sys.stderr, False, 3, "Destination must be an already existing folder.") return False - elif not os.path.isdir(os.path.join(dname, self.fname).rsplit(os.sep, 1)[0]): - os.makedirs(os.path.join(dname, self.fname).rsplit(os.sep, 1)[0]) + self.fname = os.path.basename(self.fname) for i in range(len(self.bmps)): self.b_write(os.path.join(dname, "%s_%04d.bmp" % (self.fname, i)), self.b_export_bmp(64, len(self.bmps[i])/256, self.bmps[i])) if self.oldsave and len(self.o_bmps[i]) > 0: