mkdir
mkdir(p1, p2 = v2)Makes a new directory named by string, with permissions specified by the optional parameter anInteger. The permissions may be modified by the value of File::umask, and are ignored on NT. Raises a SystemCallError if the directory cannot be created. See also the discussion of permissions in the class documentation for File.
Dir.mkdir(File.join(Dir.home, ".foo"), 0700) #=> 0
3Notes
makedirs(path) to create file path
mkdir will only create a single directory on an existing path. If you want to create a full path, like the mkdir -p /full/path command, use the makedirs method.
1.8: File.makedirs(path) 1.9: FileUtils.makedirs(path)
Make directory if not exists
If the directory already exists, mkdir raises exception. To prevent this:
Dir.mkdir(dir) unless File.exists?(dir)
ferragamo
Salvatore ferragamo pas cher, 30 ~ 70% de rabais! Salvatore ferragamo chaussures!Bienvenue à notre Salvatore ferragamo en ligne, la spécialité de vendre de Salvatore ferragamo Pas Cher style. inclure:ferragamo chaussures,ferragamo sac etc.Nous sommes à votre bon choix.site web:http://www.ferragamochaussures.com/