lib/milton/attachment.rb in citrusbyte-milton-0.2.1 vs lib/milton/attachment.rb in citrusbyte-milton-0.2.2
- old
+ new
@@ -186,10 +186,10 @@
milton_options[:file_system_path]
end
# Recreates the directory this file will be stored in.
def recreate_directory
- self.class.recreate_directory(dirname, milton_options) unless File.exists?(dirname)
+ self.class.recreate_directory(dirname, milton_options) unless File.exists?(dirname) || File.symlink?(dirname)
end
# Removes the containing directory from the filesystem (and hence the
# file and any derivatives)
def destroy_file