ftpmvc 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ftpmvc/ftpd/file_system.rb +3 -3
- data/lib/ftpmvc/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: 79a923c8d12fec0e8aee16d6bcf75d15969c12b8
|
4
|
+
data.tar.gz: 1b2ab2266a73e6e1263b3e9f66456cc0d93393aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 723985bcf387095631590083826bdb3013ba5c77b0b59707adea0989e31144eb3c1c20704eed44a10526dde9ed82b32bc79935091391197278aa920aa5e869a7
|
7
|
+
data.tar.gz: 6c159810a90943ea5417f1d53a0dc1ebab8557e1f0ea090535919f06c98ecf41757c2ab1bf6dc5c6d48c7c1d7cdc56429d22425ba8aefb68263d06bae7835299
|
@@ -6,11 +6,11 @@ module FTPMVC
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def dir(path)
|
9
|
-
@application.index(path
|
9
|
+
@application.index(path.gsub('/*', '')).map { |node| ::File.join(path, node.name) }
|
10
10
|
end
|
11
11
|
|
12
12
|
def directory?(path)
|
13
|
-
@application.directory?(path)
|
13
|
+
@application.directory?(path.gsub('/*', ''))
|
14
14
|
end
|
15
15
|
|
16
16
|
def read(path)
|
@@ -29,7 +29,7 @@ module FTPMVC
|
|
29
29
|
::Ftpd::FileInfo.new(
|
30
30
|
:ftype => directory?(path) ? 'directory' : 'file',
|
31
31
|
:group => 'nogroup',
|
32
|
-
:mode =>
|
32
|
+
:mode => directory?(path) ? 0750 : 0640,
|
33
33
|
:mtime => Time.now,
|
34
34
|
:nlink => 33,
|
35
35
|
:owner => 'nobody',
|
data/lib/ftpmvc/version.rb
CHANGED