diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-21 21:06:01 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-07-21 21:06:01 +0200 |
| commit | dc06f6ff6e98c69daf4ed32b6234fbf443c8e3df (patch) | |
| tree | 220a0f84d72c705a7f60d1e0ab096f854b978930 /python | |
| parent | f6e25c242bd4623c452c7d034cd12aa47fee8953 (diff) | |
| download | vyos-1x-dc06f6ff6e98c69daf4ed32b6234fbf443c8e3df.tar.gz vyos-1x-dc06f6ff6e98c69daf4ed32b6234fbf443c8e3df.zip | |
vyos.utils: T7648: remove duplicate definition of makedir
Function makedir defined two times inside the same file.
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/utils/file.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/python/vyos/utils/file.py b/python/vyos/utils/file.py index 49bea567d..1e2de2b39 100644 --- a/python/vyos/utils/file.py +++ b/python/vyos/utils/file.py @@ -145,12 +145,6 @@ def file_permissions(path): """ Return file permissions in string format, e.g '0755' """ return oct(os.stat(path).st_mode)[4:] -def makedir(path, user=None, group=None): - if os.path.exists(path): - return - os.makedirs(path, mode=0o755) - chown(path, user, group) - def wait_for_inotify(file_path, pre_hook=None, event_type=None, timeout=None, sleep_interval=0.1): """ Waits for an inotify event to occur """ if not os.path.dirname(file_path): |
