From 74234623b28acc15a2e40ac11446a9e0464ca6c5 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 6 Sep 2022 11:50:44 +0300 Subject: [PATCH] [#215] object: Add well-known FilePath attribute Signed-off-by: Denis Kirillov --- object/wellknown_attributes.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/object/wellknown_attributes.go b/object/wellknown_attributes.go index c1fc8338..efece388 100644 --- a/object/wellknown_attributes.go +++ b/object/wellknown_attributes.go @@ -9,6 +9,15 @@ const ( // file name to be associated with the object on saving. AttributeFileName = "FileName" + // AttributeFilePath is an attribute key that is commonly used to denote + // full path to be associated with the object on saving. Should start with a + // '/' and use '/' as a delimiting symbol. Trailing '/' should be + // interpreted as a virtual directory marker. If an object has conflicting + // FilePath and FileName, FilePath should have higher priority, because it + // is used to construct the directory tree. FilePath with trailing '/' and + // non-empty FileName attribute should not be used together. + AttributeFilePath = "FilePath" + // AttributeTimestamp is an attribute key that is commonly used to denote // user-defined local time of object creation in Unix Timestamp format. AttributeTimestamp = "Timestamp"