mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-27 22:41:16 +08:00
support dynamic name directory in template
This commit is contained in:
@@ -93,6 +93,7 @@ module Motion; module Project
|
||||
template_files = File.join(template_directory, 'files')
|
||||
Dir.glob(File.join(template_files, "**/")).each do |dir|
|
||||
dir.sub!("#{template_files}/", '')
|
||||
dir = replace_file_name(dir)
|
||||
FileUtils.mkdir_p(dir) if dir.length > 0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user