summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/byteback/backup_directory.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/byteback/backup_directory.rb b/lib/byteback/backup_directory.rb
index 9355a1d..e557dfe 100644
--- a/lib/byteback/backup_directory.rb
+++ b/lib/byteback/backup_directory.rb
@@ -139,7 +139,7 @@ module Byteback
# Create a new snapshot of 'current'
#
def new_snapshot!(time = Time.now)
- snapshot_path = time.strftime(dir+"/%Y-%m-%dT%H:%M%z")
+ snapshot_path = time.strftime(dir.path + "/%Y-%m-%dT%H:%M%z")
Snapshot.new(self, snapshot_path).create!(current.path)
end