os.TYPESAFE

Place file in a typesafe manner.

Syntax

os.TYPESAFE

Description

Place file in a typesafe manner. If bucket is not provided, find the first typesafe bucket. If the bucket is provided, assert the file can be placed in a typesafe manner.

In case the file can not be placed in a typesafe manner, the placement will fail.

See also os.TYPESAFE_IF_POSSIBLE. The main difference between os.TYPESAFE and os.TYPESAFE_IF_POSSIBLE is how they behave in cases where it is not possilbe to place the file respecting typesafety. os.TYPESAFE will reject the operation. os.TYPESAFE_IF_POSSIBLE will place the file anyway.

Examples

Moving a file without the TYPESAFE flag will ignore .Accept rules.

Moving a file with the TYPESAFE flag will respect .Accept rules.

Moving a file with the TYPESAFE flag will respect .Accept rules. If the .Accept rules deny placement, the operation will fail.