rxfreadwrite 0.2.1 → 0.2.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: ce12d520fd0882b7a49194ef341ff80d14551b9d3a32773605f74a3203a0bdda
4
- data.tar.gz: 60579f92af1b9bd7e430521d22de70be7ae40f1d646e878decc0e66b56fe1ca8
3
+ metadata.gz: '0568a7bd949343da576434a90ace51dc73726e21576d5219ba7be4c00487bdcc'
4
+ data.tar.gz: 27b26cb4c0b15e42724b97be4d77df4487479684a7e60a0605385370eb5eba45
5
5
  SHA512:
6
- metadata.gz: 26a3ac804405987b43ca015325c8b24e8d03db18713905e381f3631152f0c3f370e4ed9b372affea51106d222beafefd410f2f654690193e4c17c60507afd864
7
- data.tar.gz: e6759d75ea0ec5009d0662ab46007cd4cc0c3a8f53d0c827f3f9aa160478b2c0e70ec4828b70c14ac35e59433533f095d685385aecc56339a566809de67a91b7
6
+ metadata.gz: a6145972b5042a8c8d93be494ffbf300e51ee3e0490b6caa240fee03a85384ba31e1cd9e61ea540d668026ff0a5f2089ffeb20ab5139c1bc7cd802f0fb9be828
7
+ data.tar.gz: d7d50e11a221b906ed746ed3087c73e692c967f25abe0559c9d9a035cd4afd75df447353083be94f0e5f628b9cbbf7421f3c5a6514286be8bd88cc1502c1d901
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfreadwrite.rb CHANGED
@@ -19,6 +19,26 @@ module RXFReadWriteModule
19
19
  end
20
20
 
21
21
  def FileX.chdir(s) RXFReadWrite.chdir(s) end
22
+
23
+ def FileX.directory?(filename)
24
+
25
+ type = FileX.filetype(filename)
26
+
27
+ filex = case type
28
+ when :file
29
+ File
30
+ when :dfs
31
+ DfsFile
32
+ else
33
+ nil
34
+ end
35
+
36
+ return nil unless filex
37
+
38
+ filex.directory? filename
39
+
40
+ end
41
+
22
42
  def FileX.mkdir(s) RXFReadWrite.mkdir(s) end
23
43
  def FileX.mkdir_p(s) RXFReadWrite.mkdir_p(s) end
24
44
  def FileX.rm(s) RXFReadWrite.rm(s) end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfreadwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  gnYmJHVhKvNaFwL4ryulhkA+n8o3Ve6Kzo/AGlO2+Ge6H0bqIUbS8UisqDa7IwlY
36
36
  tvleW582+lzMrpAfWdGb4VFX
37
37
  -----END CERTIFICATE-----
38
- date: 2022-02-22 00:00:00.000000000 Z
38
+ date: 2022-02-23 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rxfreader
metadata.gz.sig CHANGED
Binary file