summaryrefslogtreecommitdiff
path: root/file_upload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'file_upload.rb')
-rw-r--r--file_upload.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_upload.rb b/file_upload.rb
index b9a6d6d..aab6b4e 100644
--- a/file_upload.rb
+++ b/file_upload.rb
@@ -29,7 +29,7 @@ class FileUpload < Sinatra::Base
end
get '/' do
- @files = settings.public.join('files').entries - [Pathname('.'), Pathname('..')]
+ @files = settings.public.join('files').entries - [Pathname.new('.'), Pathname.new('..')]
@flash = session[:flash]
session[:flash] = nil