开发者

is ruby on rails supporting folder hiearachy?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜