def my_mkdir(dirPath)
unless File.exist?(dirPath)
my_mkdir(dirPath[0, dirPath.rindex('/')]) if dirPath.rindex('/')
Dir::mkdir dirPath
end
end
my_mkdir('c:/a/b/c/d')
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
搞笑Gifs8