Deprecate method ensure_dir
oslo.utils provide similar method in module fileutils, deprecate it and remove in Queens. Change-Id: Ic902df19db504889d563d48b19129486ffdc2baa
This commit is contained in:
parent
70263999f7
commit
2151feab38
@ -17,7 +17,13 @@ import errno
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
from debtcollector import removals
|
||||||
|
|
||||||
|
|
||||||
|
@removals.remove(
|
||||||
|
message="use ensure_tree(path, 0o755) from oslo_utils.fileutils",
|
||||||
|
version="Ocata",
|
||||||
|
removal_version="Queens")
|
||||||
def ensure_dir(dir_path):
|
def ensure_dir(dir_path):
|
||||||
"""Ensure a directory with 755 permissions mode.
|
"""Ensure a directory with 755 permissions mode.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user