Skip to content

Commit 15eaf93

Browse files
Stanislav Bogatyrevrealloc
authored andcommitted
[nspcc-dev#238] Add FilePath object attribute
FilePath attribute is already used by S3 and HTTP protocol gateways. Also seen in [Gaspump](https://github.com/configwizard/gaspump-api/). Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
1 parent c03a538 commit 15eaf93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

object/types.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ message Header {
135135
// Human-friendly name
136136
// * FileName \
137137
// File name to be associated with the object on saving
138+
// * FilePath \
139+
// Full path to be associated with the object on saving. Should start with a
140+
// '/' and use '/' as a delimiting symbol. Trailing '/' should be
141+
// interpreted as a virtual directory marker. If an object has conflicting
142+
// FilePath and FileName, FilePath should have higher priority, because it
143+
// is used to construct the directory tree. FilePath with trailing '/' and
144+
// non-empty FileName attribute should not be used together.
138145
// * Timestamp \
139146
// User-defined local time of object creation in Unix Timestamp format
140147
// * Content-Type \

0 commit comments

Comments
 (0)