本文簡要介紹 python 語言中 arcgis.gis.ContentManager.rename_folder
的用法。
用法:
rename_folder(old_folder, new_folder, owner=None)
返回:
指示成功 (True) 或失敗 (False) 的布爾值
rename_folder
方法將現有文件夾從其現有名稱重命名為新名稱。注意:
如果沒有指定所有者,則將所有者設置為登錄用戶。
Parameter
Description
old_folder
必需的字符串。要為所有者重命名的文件夾的名稱。
new_folder
必需的字符串。文件夾的新名稱。
owner
可選字符串。用戶,文件夾所有者,登錄用戶無。
例子:
# Usage Example >>> gis.content.rename_folder("2020_Hurricane_Data", "2021_Hurricane_Data", "User1234")
相關用法
- Python ArcGIS ContentManager.replace_service用法及代碼示例
- Python ArcGIS ContentManager.unshare_items用法及代碼示例
- Python ArcGIS ContentManager.delete_folder用法及代碼示例
- Python ArcGIS ContentManager.advanced_search用法及代碼示例
- Python ArcGIS ContentManager.can_delete用法及代碼示例
- Python ArcGIS ContentManager.create_service用法及代碼示例
- Python ArcGIS ContentManager.create_folder用法及代碼示例
- Python ArcGIS ContentManager.share_items用法及代碼示例
- Python ArcGIS ContentManager.clone_items用法及代碼示例
- Python ArcGIS ContentManager.add用法及代碼示例
- Python ArcGIS ContentManager.search用法及代碼示例
- Python ArcGIS ContentManager.bulk_update用法及代碼示例
- Python ArcGIS ContentManager.delete_items用法及代碼示例
- Python ArcGIS ContentManager.generate用法及代碼示例
- Python ArcGIS ContentManager.analyze用法及代碼示例
- Python ArcGIS ContentManager.is_service_name_available用法及代碼示例
- Python ArcGIS Country.enrich用法及代碼示例
- Python ArcGIS Country.subgeographies用法及代碼示例
- Python ArcGIS Country.enrich_variables用法及代碼示例
- Python ArcGIS Country.travel_modes用法及代碼示例
- Python ArcGIS CiscoEdgeIntelligence用法及代碼示例
- Python ArcGIS CategoryManager.add用法及代碼示例
- Python ArcGIS CreditManager用法及代碼示例
- Python ArcGIS CategorySchemaManager.delete用法及代碼示例
- Python ArcGIS CertificateManager.delete用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.gis.ContentManager.rename_folder。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。