/usr/share/pyshared/integration_tests/trashinfo.py is in trash-cli 0.12.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | def a_trashinfo(escaped_path_entry,
formatted_deletion_date = '2000-01-01T00:00:01'):
return ("[Trash Info]\n" +
"Path=%s\n" % escaped_path_entry +
"DeletionDate=%s\n" % formatted_deletion_date)
def a_trashinfo_without_date():
return ("[Trash Info]\n"
"Path=/path\n")
def a_trashinfo_with_invalid_date():
return ("[Trash Info]\n"
"Path=/path\n"
"DeletionDate=Wrong Date")
def a_trashinfo_without_path():
return ("[Trash Info]\n"
"DeletionDate='2000-01-01T00:00:00'\n")
def a_trashinfo_with_date(date):
return ("[Trash Info]\n"
"DeletionDate=%s\n" % date)
|