Adding trailing slashes when listing directories
When listing backuped files, it was difficult to discriminate beytween files and directories. Well, not anymore !master
parent
84dc120ee8
commit
2b09b2d27a
|
@ -402,6 +402,9 @@ if args.command == "list":
|
|||
# Print the files too if asked so
|
||||
if args.show_files:
|
||||
for f in app_list[app].files:
|
||||
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
|
||||
|
@ -416,6 +419,9 @@ if args.command == "list":
|
|||
|
||||
# Print the app files
|
||||
for f in app_list[app].files:
|
||||
if os.path.isdir(persoconf.path + "/" + app + "/" + f):
|
||||
print("\t%s/" % f)
|
||||
else:
|
||||
print("\t%s" % f)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue