LoginSignup
0
0

More than 3 years have passed since last update.

VB でフォルダ作成(ない場合は作る)

Posted at

ruby の FileUtils.mkdir_p, Linux の mkdir -p のVB版

Friend Module FileUtils
    Private Sub MkdirP(ByVal destDirPath As String)
        If Directory.Exists(destDirPath) Then Return
        Dim dirname = Path.GetDirectoryName(destDirPath)
        If Not Directory.Exists(dirname) Then MkdirP(dirname)
        Directory.CreateDirectory(destDirPath)
    End Sub
End Module

元ネタは、どこかの古い掲示板だったような気がする

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0