summaryrefslogtreecommitdiff
path: root/fs/utils.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2012-01-23 18:44:47 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2012-01-23 18:44:47 +0000
commitf17c12b80d9227ed4e7e8cc5c8af068dbdef7ce9 (patch)
treeda308557c26da5b17053ed4a8c354ea5103b6e62 /fs/utils.py
parentba3932ac1d6ff2c936127e8510fd81afc730dd51 (diff)
downloadpyfilesystem-git-f17c12b80d9227ed4e7e8cc5c8af068dbdef7ce9.tar.gz
Fix to use ascii art when terminal colours is disabled
Diffstat (limited to 'fs/utils.py')
-rw-r--r--fs/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/utils.py b/fs/utils.py
index 69793ff..962cc37 100644
--- a/fs/utils.py
+++ b/fs/utils.py
@@ -519,11 +519,11 @@ def print_fs(fs,
dircount = [0]
filecount = [0]
def print_dir(fs, path, levels=[]):
- if file_encoding == 'UTF-8':
+ if file_encoding == 'UTF-8' and terminal_colors:
char_vertline = u'│'
char_newnode = u'├'
char_line = u'──'
- char_corner = u'└'
+ char_corner = u'╰'
else:
char_vertline = '|'
char_newnode = '|'