Skip to content

Commit

Permalink
util.fs: \t not allowed in FAT (close soimort#2646)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Oct 14, 2018
1 parent 4b7753f commit 251b809
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/you_get/util/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def legitimize(text, os=detect_os()):
ord('|'): '-',
})

# FIXME: do some filesystem detection
if os == 'windows' or os == 'cygwin' or os == 'wsl':
# Windows (non-POSIX namespace)
text = text.translate({
Expand All @@ -28,6 +29,7 @@ def legitimize(text, os=detect_os()):
ord('>'): '-',
ord('['): '(',
ord(']'): ')',
ord('\t'): ' ',
})
else:
# *nix
Expand Down

0 comments on commit 251b809

Please sign in to comment.