right_data 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FileSystemItem.rb +12 -7
- metadata +3 -3
data/lib/FileSystemItem.rb
CHANGED
@@ -124,13 +124,18 @@ module RightData
|
|
124
124
|
self.traverse do |n|
|
125
125
|
# Is this a leaf (e.g. a file)?
|
126
126
|
if n.leaf?
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
127
|
+
if(File.directory?(n.path))
|
128
|
+
# Prune empty dirs!
|
129
|
+
puts "#{pre}'#{n.path.gsub(/'/,"\\'")}' # Empty dir" # Remove the dups/igns!
|
130
|
+
else
|
131
|
+
msg = nil
|
132
|
+
msg = "# dup(#{n.duplicates.count})" if n.duplicate?
|
133
|
+
msg = "# ign" if n.ignorable?
|
134
|
+
if msg
|
135
|
+
puts "#{pre}'#{n.path.gsub(/'/,"\\'")}' #{msg}" # Remove the dups/igns!
|
136
|
+
else
|
137
|
+
puts "# #{n.path} unique"
|
138
|
+
end
|
134
139
|
end
|
135
140
|
false # Don't traverse deeper!
|
136
141
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 10
|
10
|
+
version: 0.5.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Siegel
|