active-storage-ftp 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51c0c18d64d6fc45c576eb7322a3a6e83ce479b414dc9a33b6495869e21d7e2c
|
4
|
+
data.tar.gz: 4989199076218c6484451cfceffe361e2cabdecd06940dce1b9249c3dbc07e2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84273dbb248ba0e9da48cd5991472a4050584862ed74957a602ad7e093b4f4206660824de537900fc75432347f8f7ff4bf2ae7f624a176c6dda43e9897bcf2b1
|
7
|
+
data.tar.gz: 5f00a418c46b1d3b272f3f4a3e4fb91f2cc9e6f42eb5c806b095658053ec2e9208c302a9b0dde9c2c77a66a999b3eaade4b5d374646b497b885be6df21938edd
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
|
1
2
|
module ActiveStorageFtp
|
2
|
-
class EnhanceFtp < Net::
|
3
|
+
class EnhanceFtp < Net::FTP
|
3
4
|
def mkdir_p(remove_path)
|
4
5
|
paths = remove_path.split('/')
|
5
6
|
full_path = paths.first == '~' ? '' : '/'
|
6
7
|
paths.each do |path|
|
7
8
|
full_path = File.join(full_path, path)
|
8
|
-
|
9
|
+
begin
|
10
|
+
mkdir(full_path)
|
11
|
+
rescue
|
12
|
+
end
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|