Attempts to create a home root folder for the current user ("users/joe"). Results in an error if the user already has a home root folder or the requested ID is unavailable. Args: requestedId: The requested ID of the home folder (e.g., "users/joe").
(requestedId: str)
| 2226 | |
| 2227 | |
| 2228 | def createAssetHome(requestedId: str) -> None: |
| 2229 | """Attempts to create a home root folder for the current user ("users/joe"). |
| 2230 | |
| 2231 | Results in an error if the user already has a home root folder or the |
| 2232 | requested ID is unavailable. |
| 2233 | |
| 2234 | Args: |
| 2235 | requestedId: The requested ID of the home folder (e.g., "users/joe"). |
| 2236 | """ |
| 2237 | # This is just a special case of folder creation. |
| 2238 | createAsset({ |
| 2239 | 'name': _cloud_api_utils.convert_asset_id_to_asset_name(requestedId), |
| 2240 | 'type': 'FOLDER' |
| 2241 | }) |
| 2242 | |
| 2243 | |
| 2244 | def _get_config_path() -> str: |
nothing calls this directly
no test coverage detected