From 56216b3bea4e7405189d60df5c9a41886044c9bd Mon Sep 17 00:00:00 2001
From: Paul van Tilburg
Date: Thu, 29 Jul 2010 23:50:41 +0200
Subject: [PATCH] Added upload/.placeholder so the directory gets created. *
Modified the main view to ignore the placeholder.
---
plemp.rb | 1 +
upload/.placeholder | 1 +
2 files changed, 2 insertions(+)
diff --git a/plemp.rb b/plemp.rb
index 4502e1f..9585e74 100644
--- a/plemp.rb
+++ b/plemp.rb
@@ -91,6 +91,7 @@ module Plemp::Views
end
end
UPLOAD_DIR.entries.select { |f| (UPLOAD_DIR + f).file? }.each do |f|
+ next if f.to_s =~ /^\./
file = UPLOAD_DIR + f
id = file.basename.to_s
if Positions.has_key? id
diff --git a/upload/.placeholder b/upload/.placeholder
index e69de29..53a4d0c 100644
--- a/upload/.placeholder
+++ b/upload/.placeholder
@@ -0,0 +1 @@
+This is a placeholder for Git.