tf.compat.v1.gfile.Rename
Переименовать или переместить файл / директорию.
tf.compat.v1.gfile.Rename(
oldname, newname, overwrite=False
)
| Args | |
|---|---|
oldname | строка, путь к файлу |
newname | строка, путь, куда нужно переместить файл |
overwrite | логическое значение, если false, то ошибка, если newname занят существующим файлом. |
| Raises | |
|---|---|
errors.OpError | Если операция завершилась неудачно. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/compat/v1/gfile/Rename