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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rxfhelper.rb +44 -1
- data.tar.gz.sig +1 -1
- metadata +2 -2
- 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: cc08e94405728b8ce7bcd30f2c33736b9f209131caac7d6fded3faf7a5488985
|
4
|
+
data.tar.gz: d1625899121690c01ccb348f42ea31e04445a3177c2841b510222f8f8dd04414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
1
|
+
���)KB$j�ē�m�l�6� �Hh�P�����e�yA[cF�G��+=�9q�f�^�a+�����ȧηxِ���T�4:\�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.
|
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-
|
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
|