There is a code:
def go(cur): for dr in listdir(cur): if(isdir(cur.join(dr))): go(cur.join(dr)) elif(dr[-4:] == 'flac'): query = 'cuebreakpoints {}.cue | shnsplit -o flac {}.flac'.format(dr[-5:], dr[-5:]) os.system(query) x = os.getcwd() go(x) I need to recurse bypass the subfolders and cut each .flac file.
The problem is that the names of folders may contain Russian characters. As you understand, the code does not work (no changes occur). Is the code not working due to poor localization or a problem with something else?
PS How to display a string, transferring it to UTF-8 before it?