From ccff3668116bd6107003e4f774ab136bb933eb77 Mon Sep 17 00:00:00 2001 From: Mahati Chamarthy Date: Mon, 25 Jul 2016 20:10:44 +0530 Subject: [PATCH] Update diskfile docstring for get_ondisk_files The return value for diskfile.BaseDiskFileManager.get_ondisk_files is a bit more rich than the current doc string describes; try to fill in some gaps. Co-Author: Alistair Coles Change-Id: Ief10644825ead124e58f3da5693bbdc1c6dc31ed --- swift/obj/diskfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/swift/obj/diskfile.py b/swift/obj/diskfile.py index 776ede0d91..0551b5e256 100644 --- a/swift/obj/diskfile.py +++ b/swift/obj/diskfile.py @@ -749,10 +749,17 @@ class BaseDiskFileManager(object): ts_file -> path to a .ts file or None data_file -> path to a .data file or None meta_file -> path to a .meta file or None + ctype_file -> path to a .meta file or None and may contain keys: ts_info -> a file info dict for a .ts file data_info -> a file info dict for a .data file meta_info -> a file info dict for a .meta file + ctype_info -> a file info dict for a .meta file which + contains the content-type value + unexpected -> a list of file paths for unexpected + files + possible_reclaim -> a list of file info dicts for possible + reclaimable files obsolete -> a list of file info dicts for obsolete files """ # Build the exts data structure: