IPWorks Cloud 2020 Python Edition

Questions / Feedback?

hide_file Method

Hides a file.

Syntax

def hide_file(bucket_id: str, file_name: str) -> str: ...

Remarks

This method hides the file named FileName in the bucket specified by BucketId by creating a special version of the file called a hide marker.

If the latest version of a file is a hide marker, then the file will not appear in the results returned by list_files, nor can it be downloaded by name using download_file. However:

To unhide a file, simply delete the hide marker using delete_file_version.

The currently-authenticated application key must have the writeFiles capability to call this method successfully, otherwise the server will return an error. Refer to the account_capabilities property for more information.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]