You can use absolute paths in FileUtil
:
FileUtil.mkdir('/tmp/foo')
will create the directory foo
in then servers /tmp/
directory.
Rail.root
holds the root of your rails application.
You can extend the path like Rails.root.join('public','a_directory')
.
Remember that the DOCUMENT ROOT
is Rails.root.join('public')