What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-28 15:55:06
go create fdir
err := os.Mkdir("subdir", 0755) check(err) Add solution -
Python 2022-02-24 21:35:12
python create directory
# This requires Python’s OS module import os # 'mkdir' creates a directory in current directory. os.mkdir('tempDir') # can also be used with a path, if the other folders exist. os.mkdir('tempDir2/temp2/temp') # 'makedirs' creates a directory with... Add solution -
Html 2022-02-14 23:15:02
javascript hack
import os import shutil sourcePath = r'C:\Users\...\What_to_copy_to_phone' destPath = r'Computer\XT1032\Internal storage' for root, dirs, files in os.walk(sourcePath): #figure out where we're going dest = destPath + root.replace(sourcePath, '') #if we'r... Add solution -
Python 2021-11-18 22:43:13
create a directory python
# This requires Python’s OS module import os # 'mkdir' creates a directory in current directory. os.mkdir('tempDir') # can also be used with a path, if the other folders exist. os.mkdir('tempDir2/temp2/temp') # 'makedirs' creates a directory with... Add solution -
-
Other 2021-11-04 12:01:14
Considering the Census Income data with response variable as Income(>50k and <=50k).
def load_dataset(path, urls): if not os.path.exists(path): os.mkdir(path) for url in urls: data = requests.get(url).content filename = os.path.join(path, os.path.basename(url)) with open(filename, "wb") as file:... Add solution