#Audio - make folder if not exists

prd
Ivan Maslov 2 years ago
parent 136c7d87a5
commit 7b7f246dab

@ -286,6 +286,8 @@ class Recorder:
)
self.mRecordedFramesList = []
lTimeSecFloat = time.time()
if not os.path.exists(os.path.abspath(self.mFolderPathStr)):
os.mkdir(self.mFolderPathStr)
sound.export(lFilePathStr, format=f"{self.mFileFormatStr}")
self.mFileNameList.append(lFileNameWExtStr)
self.mFileInfoDict[lFileNameWExtStr]= {

Loading…
Cancel
Save