fxn-unmac 0.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1 -1
- data/bin/unmac +1 -1
- data/lib/unmacer.rb +0 -12
- data/unmac.gemspec +1 -1
- metadata +1 -1
data/README
CHANGED
@@ -10,7 +10,7 @@ Options:
|
|
10
10
|
-f, --keep-fsevents Do not delete Time Machine stuff
|
11
11
|
-t, --keep-trashes Do not delete volume trashes
|
12
12
|
-m, --keep-macosx Do not delete "__MACOSX" directories
|
13
|
-
-r, --keep-dsstore Do not delete ".DS_Store"
|
13
|
+
-r, --keep-dsstore Do not delete ".DS_Store" files
|
14
14
|
-d, --keep-apple-double Do not delete "._*" ghost files
|
15
15
|
-o, --keep-apple-double-orphans Delete "._foo.txt" only if "foo.txt" exists
|
16
16
|
|
data/bin/unmac
CHANGED
@@ -18,7 +18,7 @@ Options:
|
|
18
18
|
-f, --keep-fsevents Do not delete Time Machine stuff
|
19
19
|
-t, --keep-trashes Do not delete volume trashes
|
20
20
|
-m, --keep-macosx Do not delete "__MACOSX" directories
|
21
|
-
-r, --keep-dsstore Do not delete ".DS_Store"
|
21
|
+
-r, --keep-dsstore Do not delete ".DS_Store" files
|
22
22
|
-d, --keep-apple-double Do not delete "._*" ghost files
|
23
23
|
-o, --keep-apple-double-orphans Delete "._foo.txt" only if "foo.txt" exists
|
24
24
|
|
data/lib/unmacer.rb
CHANGED
@@ -50,10 +50,6 @@ class Unmacer
|
|
50
50
|
|
51
51
|
private
|
52
52
|
|
53
|
-
def unmac_all(dirname)
|
54
|
-
unmac_root_folder(dirname)
|
55
|
-
end
|
56
|
-
|
57
53
|
def unmac_root(dirname)
|
58
54
|
# Order is important because ".Trashes" has "._.Trashes". Otherwise,
|
59
55
|
# "._.Trashes" could be left as an orphan.
|
@@ -135,14 +131,6 @@ private
|
|
135
131
|
# See http://www.westwind.com/reference/OS-X/invisibles.html.
|
136
132
|
# See http://en.wikipedia.org/wiki/Resource_fork.
|
137
133
|
# See http://en.wikipedia.org/wiki/AppleSingle.
|
138
|
-
#
|
139
|
-
# Given the listing of a directory in +basenames+ this method selects
|
140
|
-
# emulated resource forks in there.
|
141
|
-
#
|
142
|
-
# If +include_orphans+ is true any filename that start with "._" are
|
143
|
-
# selected. The idea is to clean up ghost entries corresponding to files
|
144
|
-
# that were deleted in the target volume mounted in a different OS.
|
145
|
-
# Otherwise we ensure the corresponding filename exists in +basenames+.
|
146
134
|
def delete_apple_double(dirname)
|
147
135
|
basenames = Dir.entries(dirname)
|
148
136
|
basenames.select do |basename|
|
data/unmac.gemspec
CHANGED