import_realm: Explain the usage of the relative_path var of attachment_path.

This commit is contained in:
rht
2021-08-01 11:07:22 -04:00
committed by Tim Abbott
parent 24b1439e93
commit 9441bca282

View File

@@ -774,7 +774,10 @@ def import_uploads(
record["last_modified"] = timestamp
else:
# Should be kept in sync with its equivalent in zerver/lib/uploads in the
# function 'upload_message_file'
# function 'upload_message_file'.
# This relative_path is basically the new location of the file,
# which will later be copied from its original location as
# specified in record["s3_path"].
relative_path = "/".join(
[
str(record["realm_id"]),