fileman 0.1.33525 → 0.1.33724
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.
- checksums.yaml +4 -4
- data/lib/fileman/delete.rb +2 -1
- data/lib/fileman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a97d3d68e380dc222da25666d9f9d87b46ed101
|
4
|
+
data.tar.gz: 275f0d82887117a14ca9ab92460a01b90949e10c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1341d5351868dad30e979cd0a6528b5acc2291ef99d94944787930ffd1d156d7b2304411cb48b0940ab63db4b865cf228a416f944cd1f07eaeb1540b05c8565a
|
7
|
+
data.tar.gz: cdb46ec5b92cff03754f8300c9be9674f2ad8cd9b327c59c4a52f883b932419223bf4f74c93f9532a174ab212faf7a4f7128ac900fdeb70f1909996b3c8ebad0
|
data/lib/fileman/delete.rb
CHANGED
@@ -7,6 +7,7 @@ module Fileman
|
|
7
7
|
def remove(folder_path)
|
8
8
|
new_path = Fileman.rename(folder_path, 'a', {:include_files => true, :ignore_ext => true, :recursive => true})
|
9
9
|
FileUtils.rm_rf new_path
|
10
|
-
|
10
|
+
# based on different environment, you may need to remove the folder a second time
|
11
|
+
FileUtils.remove_dir new_path if File.exists? new_path
|
11
12
|
end
|
12
13
|
end
|
data/lib/fileman/version.rb
CHANGED