Permalink
Browse files

touch action also overwrites content if body sent

  • Loading branch information...
1 parent 6923345 commit c1b70b5101c53b49f58083d9c4a7632d7316b099 @onkis onkis committed with Charles Jolley Dec 21, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sproutcore/rack/filesystem.rb
@@ -78,14 +78,15 @@ def call(env)
send_file(path)
when 'list' #returns folder structure
list_files(path)
- when 'save' #doesn't do anything
+ when 'save' #doesn't do anything useful
save_file(path,params)
when 'overwrite' #overwrites file's contents with whatever is sent
overwrite_file(path,params,body)
when 'append' #does nothing
append_file(path,params)
when 'touch' #creates a file
touch_file(path)
+ overwrite_file(path,params,body) if body
when 'mkdir' #creates a folder
make_directory(path)
when 'remove' #removes the file

0 comments on commit c1b70b5

Please sign in to comment.