file_crawler 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/file_crawler/finder/command/move.rb +3 -1
- data/lib/file_crawler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 587d4ee607e4f6909cc5558542600cd93f5631c2155ed301c0abc189c2bfb18c
|
4
|
+
data.tar.gz: '09739910fe818b27144d7f6c0faee7e3dffa7aa25047ebb912a40e4e6b761adf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce9f415e05b5f14d280c9b44dce493ebdaed839ad7f8c560b8b25810e30e0119c94f04933cc4af012caec4bcad66a9c29a90ce304789b622f9472da5a816996e
|
7
|
+
data.tar.gz: 87a77792973474e9c5d757ffbe30993ced57a7b471980baa733ecb09a4d4e503e2a4f4ed4a41d6a4deda0ae03afb1a27646c8a9198e43069812f87704a99af17
|
@@ -42,11 +42,13 @@ module FileCrawler::Finder::Command
|
|
42
42
|
|
43
43
|
def make_mv(filepaths)
|
44
44
|
cmds = []
|
45
|
+
mkdirs = []
|
45
46
|
make_fixed_paths(filepaths).map {|file|
|
47
|
+
mkdirs << "mkdir -p #{File.dirname(file[1])}"
|
46
48
|
cmds << "mv #{file[0]} #{file[1]}"
|
47
49
|
}
|
48
50
|
|
49
|
-
cmds
|
51
|
+
mkdirs.uniq + cmds
|
50
52
|
end
|
51
53
|
|
52
54
|
def make_fixed_paths(filepaths)
|
data/lib/file_crawler/version.rb
CHANGED