I'm working on a project using Python(3.7) in which I need to create a subdirectory inside a temporary directory, I have created my temporary directory as:
tempdir = tempfile.mkdtemp()
saved_unmask = os.umask(0o077)
temp_dir = os.path.join(tempdir)
Then I have tried to create a directory within this temp_dir as:
helm_chart = temp_dir + "/helmChart"
subprocess2.call(['helm', 'create', helm_chart])
helm creates path/sub_path always create a directory inside path which is temp_dir in my case, the command above is creating a directory when I passed another directory path, but it's not creating a directory inside temp_dir.
Thanks in advance!