Skip to content

Commit

Permalink
Standarize numpy style
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacVRey committed Apr 3, 2024
1 parent 5dc8bc9 commit 465375a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions plugins/module_utils/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def _get_dir_mode(path):
Parameters
----------
path : str
The absolute path to retrieve directory mode from.
path : str
The absolute path to retrieve directory mode from.
Returns
-------
int
The mode of the directory.
int
The mode of the directory.
"""
mask = S_IREAD | S_IWRITE
if os.path.isdir(path):
Expand All @@ -47,14 +47,14 @@ def make_dirs(path, mode_from=None):
Parameters
----------
path : str
The path to ensure subdirectories are created for.
path : str
The path to ensure subdirectories are created for.
Keyword Parameters
------------------
mode_from : str
Path to existing dir to retrieve the mode from.
Mode will be used for new directories. (default: {None})
mode_from : str
Path to existing dir to retrieve the mode from.
Mode will be used for new directories. (default: {None})
"""
mode = _get_dir_mode(mode_from) if mode_from is not None else S_IREAD | S_IWRITE
if path[-1] == "/":
Expand Down

0 comments on commit 465375a

Please sign in to comment.