Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flac2all_pkg/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ def encode(self, infile, mode, opts):
# $execution_time¬
# ]

if opts['nodirs'] is "d":
if opts['nodirs'] == "d":
# We don't want any directories, put everything in one place
# 1. Get file name from infile
outfile = infile.rsplit('/', 1)[-1]
outfile = os.path.join(opts['outdir'], outfile) # This removes the mode folders as well
elif opts['nodirs'] is "m":
elif opts['nodirs'] == "m":
# We want to keep directory structure, but not output "per mode" folders. This puts all difference encodings
# In the same folders
outfile = infile.replace(opts['dirpath'], os.path.join(opts['outdir']))
Expand Down
Loading