rxfhelper 1.2.5 → 1.2.6

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: 76dffb3300ae6df8b167768644a86bb625500ac20d71bf5e6f875b5c51678366
4
- data.tar.gz: aca01289710acc2d57f1bc96bfa5fbfb411ac72b600aba575fe1855033018464
3
+ metadata.gz: cc08e94405728b8ce7bcd30f2c33736b9f209131caac7d6fded3faf7a5488985
4
+ data.tar.gz: d1625899121690c01ccb348f42ea31e04445a3177c2841b510222f8f8dd04414
5
5
  SHA512:
6
- metadata.gz: 2557f0dae71e0eedbd484597d03eaaf5978fc2fa3b0fc62c63a3357d40b931cf8d319b55ef61a4e0d80a8791077ed25f76406377d16afc88adc7f6bceb2e2ba5
7
- data.tar.gz: 9a3eb0e319532abe16aee8dec70c6f576b2c881debe3f5ddad7c76ccdf2c66d9891df87bc785624a67072778169ad0001d01aff756b9570cd402d2e758f94ed7
6
+ metadata.gz: ed7fd7c023ec9fd526bfa6e6b7347980240ade785bf2dde4f80d0a4ddf5bd6238961e1dc549c0eba773d36dfdaed3f173b71412bb766d62c0e7a0581bb655e2f
7
+ data.tar.gz: 1c80069ebddf99533700fe872f9b65dc324b2f78481fac3ffe7299ea764eb306e14d053f74c51005b4da22ed3d75e74d1bfe0aa8d069f78fa15def4402d3429a
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -111,6 +111,10 @@ module RXFHelperModule
111
111
  def self.read(x) RXFHelper.read(x).first end
112
112
  def self.rm(s) RXFHelper.rm(s) end
113
113
 
114
+ def self.rm_r(s, force: false)
115
+ RXFHelper.rm_r(s, force: force)
116
+ end
117
+
114
118
  def self.touch(s, mtime: Time.now)
115
119
  RXFHelper.touch(s, mtime: mtime)
116
120
  end
@@ -405,7 +409,17 @@ class RXFHelper
405
409
  else
406
410
 
407
411
  if File.basename(filename) =~ /\*/ then
408
- Dir.glob(filename).each {|file| FileUtils.rm file }
412
+
413
+ Dir.glob(filename).each do |file|
414
+
415
+ begin
416
+ FileUtils.rm file
417
+ rescue
418
+ puts ('RXFHelper#rm: ' + file + ' is a Directory').warning
419
+ end
420
+
421
+ end
422
+
409
423
  else
410
424
  FileUtils.rm filename
411
425
  end
@@ -414,6 +428,35 @@ class RXFHelper
414
428
 
415
429
  end
416
430
 
431
+ def self.rm_r(filename, force: false)
432
+
433
+ case filename[/^\w+(?=:\/\/)/]
434
+ when 'dfs'
435
+ DfsFile.rm_r filename, force: force
436
+ #when 'ftp'
437
+ # MyMediaFTP.rm filename
438
+ else
439
+
440
+ if File.basename(filename) =~ /\*/ then
441
+
442
+ Dir.glob(filename).each do |file|
443
+
444
+ begin
445
+ FileUtils.rm_r file, force: force
446
+ rescue
447
+ puts ('RXFHelper#rm: ' + file + ' is a Directory').warning
448
+ end
449
+
450
+ end
451
+
452
+ else
453
+ FileUtils.rm_r filename, force: force
454
+ end
455
+
456
+ end
457
+
458
+ end
459
+
417
460
  def self.touch(filename, mtime: Time.now)
418
461
 
419
462
  if @fs[0..2] == 'dfs' then
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- &��vY2t˵r��Rֈ)p!D����/Jӹ/��< I��7�,&6�A�� �Z)~�wp��4�^[��~�g>Q0>7�@=�Z:��@>����?q=l�D,ۆ��R���R{7�H�Z�QDُ����6�v*�b�����%�8ٰ�l p���^8a;Yej� w�F�kh���8v�+,���wʓ�.��U��B_39�⥄۱"��h����@Ƴ�t��d ��byʏ��E+�B���#����4�Rc�9ڹ�ʺ��pW�`�BD����Fԟmh&Ϻ�f���p����Afd��@��ؘ��=��imπh���ĎnC���Q��H���z<�T��`������f��{3�(�S�"��)�y�2�
1
+ ��)KB$j�ē�m�l�6� �HhP�����eyA[cFG��+=�9q�f�^�a+�����ȧηxِ���T4:\�H}/��t�G���`�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  MrrH8cS6bqJRPQqEL1FsPmXfQpp86RvPSr0WqNSRnYEUCmqL0l2pYrXdPAyBLcji
36
36
  X1jPyhH0sl/QdPdaUnsigze+
37
37
  -----END CERTIFICATE-----
38
- date: 2022-02-08 00:00:00.000000000 Z
38
+ date: 2022-02-09 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rsc
metadata.gz.sig CHANGED
Binary file