python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How do you create a sudo mkdir for installing mongodb?
Whenever i try to mkdir i get no such file or directory
prakash subba
Votes: 0
Answers: 0
is there a touch that can create parent directories like mkdir -p?
I have the following two functions defined in my .zshrc
newdir(){ # make a new dir and cd into it
if [ $# != 1 ]; then
printf "\nUsage: newdir <dir> \n"
...
cheechi
Votes: 0
Answers: 2
Python, how to create dir within dir?
I'm trying to create a directory(workdir2) which is in the 'workdir1' directory I made. In this situation, what can I do ?
input_file: name
input_file.txt
Code:
import os
target_name=os.path.basename...

LoganLee
Votes: 0
Answers: 2
Create directory when it does not exist
I want to create a new directory if it doesn't exist already.
Tried several things, sadly I didn't find something in the Sys Library.
The nearest solution I got was:
if not (Sys.is_directory "veg...
col.ulb
Votes: 0
Answers: 2