This commit is contained in:
bee0005
2016-09-04 16:10:49 +00:00
parent f04c449d5d
commit 0037739b0d
3 changed files with 21 additions and 3 deletions

View File

@@ -14,4 +14,12 @@ class HomeController < ApplicationController
`mkdir #{current_dir}/#{directory_name}`
redirect_to '/home/index'
end
def delete_file
file_name = params[:file_name]
puts "rm #{file_name} -rf"
#`rm #{file_name} -rf`
redirect_to '/home/index'
end
end