rxfreadwrite 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rxfreadwrite.rb +0 -44
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a5e0be2ab188873e5b66442a41c9323cb2cdc147479a4f345e0bf8f65a5169
|
4
|
+
data.tar.gz: 789b30722ba41958c2583339ae81517a6b9e15add206257962e46487cd30fafc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4111afd84565a9548023a8986574548332d3f37f3d7fd09da6ac21df8163ff46feb71142694cd45c001878071d945662ebc29a8b7ba4c6f9976db35c3728c89
|
7
|
+
data.tar.gz: 401e36e30e4f859afa88ef3087a73299546431adb139bb8aef1b04b885d5d41a364784cfcc5c47708d6aeb79c597881ebdf5c864633006c5a3e7717fb5c57396
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rxfreadwrite.rb
CHANGED
@@ -8,7 +8,6 @@ require 'rxfreader'
|
|
8
8
|
module RXFReadWriteModule
|
9
9
|
include RXFRead
|
10
10
|
|
11
|
-
|
12
11
|
class DirX
|
13
12
|
|
14
13
|
def self.glob(s) RXFReadWrite.glob(s) end
|
@@ -17,51 +16,8 @@ module RXFReadWriteModule
|
|
17
16
|
|
18
17
|
end
|
19
18
|
|
20
|
-
def FileX.exists?(filename)
|
21
|
-
|
22
|
-
type = FileX.filetype(filename)
|
23
|
-
|
24
|
-
filex = case type
|
25
|
-
when :file
|
26
|
-
File
|
27
|
-
when :dfs
|
28
|
-
DfsFile
|
29
|
-
else
|
30
|
-
nil
|
31
|
-
end
|
32
|
-
|
33
|
-
return nil unless filex
|
34
|
-
|
35
|
-
filex.exists? filename
|
36
|
-
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
def FileX.filetype(x)
|
41
|
-
|
42
|
-
return :string if x.lines.length > 1
|
43
|
-
|
44
|
-
case x
|
45
|
-
when /^https?:\/\//
|
46
|
-
:http
|
47
|
-
when /^dfs:\/\//
|
48
|
-
:dfs
|
49
|
-
when /^file:\/\//
|
50
|
-
:file
|
51
|
-
else
|
52
|
-
|
53
|
-
if File.exists?(x) then
|
54
|
-
:file
|
55
|
-
else
|
56
|
-
:text
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
19
|
def FileX.mkdir(s) RXFReadWrite.mkdir(s) end
|
63
20
|
def FileX.mkdir_p(s) RXFReadWrite.mkdir_p(s) end
|
64
|
-
|
65
21
|
def FileX.rm(s) RXFReadWrite.rm(s) end
|
66
22
|
|
67
23
|
def FileX.rm_r(s, force: false)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|