Updated on 2022-12-06 GMT+08:00
How Do I Rename an OBS File?
OBS files cannot be renamed on the OBS console. To rename an OBS file, call a MoXing API in an existing or newly created notebook instance.
The following shows an example:
Rename obs_file.txt obs_file_2.txt.
import moxing as mox mox.file.rename('obs://bucket_name/obs_file.txt', 'obs://bucket_name/obs_file_2.txt')
Parent topic: Data Storage
Data Storage FAQs
- How Do I Rename an OBS File?
- Do Files in /cache Still Exist After a Notebook Instance is Stopped or Restarted? How Do I Avoid a Restart?
- How Do I Use the pandas Library to Process Data in OBS Buckets?
- How Do I Access the OBS Bucket of Another Account from a Notebook Instance?
- What Is the Default Working Directory on JupyterLab?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore