cf.Field.del_file_location

Field.del_file_location(location, constructs=True)[source]

Remove a file location in-place.

All data definitions that reference files will have references to files in the given location removed from them.

New in version 3.15.0.

Parameters
location: str

The file location to remove.

constructs: bool, optional

If True (the default) then metadata constructs also have the new file location removed from them.

Returns
str

The removed location as an absolute path with no trailing separate pathname component separator.

Examples

>>> d.del_file_location('/data/model/')
'/data/model'