Adding trailing slashes when listing directories

When listing backuped files, it was difficult to discriminate beytween
files and directories. Well, not anymore !
master
Lertsenem 2015-11-28 13:11:27 +01:00
parent 84dc120ee8
commit 2b09b2d27a
1 changed files with 8 additions and 2 deletions

View File

@ -402,7 +402,10 @@ if args.command == "list":
# Print the files too if asked so
if args.show_files:
for f in app_list[app].files:
print("\t%s" % f)
if os.path.isdir(persoconf.path + "/" + app + "/" + f):
print("\t%s/" % f)
else:
print("\t%s" % f)
# Some apps were specified, so we list them with their files
else:
@ -416,7 +419,10 @@ if args.command == "list":
# Print the app files
for f in app_list[app].files:
print("\t%s" % f)
if os.path.isdir(persoconf.path + "/" + app + "/" + f):
print("\t%s/" % f)
else:
print("\t%s" % f)
# DELETE COMMAND