ee.data.createAssetHome
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Próbuje utworzyć główny folder domowy (np. „users/joe”) dla bieżącego użytkownika. Jeśli użytkownik ma już główny folder domowy lub żądany identyfikator jest niedostępny, spowoduje to błąd.
Wykorzystanie | Zwroty |
---|
ee.data.createAssetHome(requestedId, callback) | |
Argument | Typ | Szczegóły |
---|
requestedId | Ciąg znaków | Żądany identyfikator folderu domowego (np. „users/joe”). |
callback | Funkcja (opcjonalnie) | opcjonalne wywołanie zwrotne. Jeśli nie zostanie podany, wywołanie zostanie wykonane synchronicznie. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eCreates a home root folder (like "users/joe") for the current user if one doesn't already exist.\u003c/p\u003e\n"],["\u003cp\u003eReturns an error if a home folder for the user already exists or the requested ID is taken.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.createAssetHome()\u003c/code\u003e function, accepting a requested ID and an optional callback.\u003c/p\u003e\n"],["\u003cp\u003eWhen a callback is not provided, the function execution becomes synchronous.\u003c/p\u003e\n"]]],[],null,["# ee.data.createAssetHome\n\n\u003cbr /\u003e\n\nAttempts to create a home root folder (e.g. \"users/joe\") for the current user. This results in an error if the user already has a home root folder or the requested ID is unavailable.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------|---------|\n| `ee.data.createAssetHome(requestedId, `*callback*`)` | |\n\n| Argument | Type | Details |\n|---------------|--------------------|------------------------------------------------------------------------|\n| `requestedId` | String | The requested ID of the home folder (e.g. \"users/joe\"). |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]