开发者

is ruby on rails supporting folder hiearachy?

开发者 https://www.devze.com 2023-02-04 00:48 出处:网络
i using ruby on rails programing language for the making a very simple project which is need to create folder hierarchy ju开发者_StackOverflow社区st like yahoomail folder. but i need to also subfolder

i using ruby on rails programing language for the making a very simple project which is need to create folder hierarchy ju开发者_StackOverflow社区st like yahoomail folder. but i need to also subfolder create in this directory so is support ruby on rails?


Yes, it does.

You can create recursive directories using

require 'fileutils'

FileUtils.mkdir_p 'my/path/to/something'

Following links can be useful for you http://rosettacode.org/wiki/Walk_a_directory/Recursively#Ruby, Ruby: how do I recursively find and remove empty directories?

0

精彩评论

暂无评论...
验证码 换一张
取 消