rxfhelper 1.2.5 → 1.3.2
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 +80 -1
- data.tar.gz.sig +0 -0
- metadata +7 -7
- 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: ffc697b75550b4e156ba5b97cb7a5944d82b4e1695a543759ca664f1e7d3bba2
|
4
|
+
data.tar.gz: f86a10a6c29dc64a9676bc4662d611fdf465e5dd59bd9c1abe2aceed74a94bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 510fb702f882209f7328be1111c26d37217c77ea0abd35a90082dd14bc38a47d80adc76fd85cd90d553b36cacff893dd9570ae275f0f09c4082abfa19c975c8e
|
7
|
+
data.tar.gz: b7c56bf83303c4fdaefd83970fce08c03e6350b11180978c2634240ee1a5501f92eb43245b556a7fd0c0274f958f47e53e1dd6b429f4ccef9458dd7cb644eb16
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rxfhelper.rb
CHANGED
@@ -9,6 +9,7 @@ require 'mymedia_ftp'
|
|
9
9
|
require 'drb_fileclient'
|
10
10
|
require 'drb_reg_client'
|
11
11
|
require 'remote_dwsregistry'
|
12
|
+
require 'dir-to-xml'
|
12
13
|
|
13
14
|
|
14
15
|
|
@@ -111,6 +112,13 @@ module RXFHelperModule
|
|
111
112
|
def self.read(x) RXFHelper.read(x).first end
|
112
113
|
def self.rm(s) RXFHelper.rm(s) end
|
113
114
|
|
115
|
+
def self.rm_r(s, force: false)
|
116
|
+
RXFHelper.rm_r(s, force: force)
|
117
|
+
end
|
118
|
+
|
119
|
+
def self.ru(s) RXFHelper.ru(s) end
|
120
|
+
def self.ru_r(s) RXFHelper.ru_r(s) end
|
121
|
+
|
114
122
|
def self.touch(s, mtime: Time.now)
|
115
123
|
RXFHelper.touch(s, mtime: mtime)
|
116
124
|
end
|
@@ -405,7 +413,17 @@ class RXFHelper
|
|
405
413
|
else
|
406
414
|
|
407
415
|
if File.basename(filename) =~ /\*/ then
|
408
|
-
|
416
|
+
|
417
|
+
Dir.glob(filename).each do |file|
|
418
|
+
|
419
|
+
begin
|
420
|
+
FileUtils.rm file
|
421
|
+
rescue
|
422
|
+
puts ('RXFHelper#rm: ' + file + ' is a Directory').warning
|
423
|
+
end
|
424
|
+
|
425
|
+
end
|
426
|
+
|
409
427
|
else
|
410
428
|
FileUtils.rm filename
|
411
429
|
end
|
@@ -414,6 +432,67 @@ class RXFHelper
|
|
414
432
|
|
415
433
|
end
|
416
434
|
|
435
|
+
def self.rm_r(filename, force: false)
|
436
|
+
|
437
|
+
case filename[/^\w+(?=:\/\/)/]
|
438
|
+
when 'dfs'
|
439
|
+
DfsFile.rm_r filename, force: force
|
440
|
+
#when 'ftp'
|
441
|
+
# MyMediaFTP.rm filename
|
442
|
+
else
|
443
|
+
|
444
|
+
if File.basename(filename) =~ /\*/ then
|
445
|
+
|
446
|
+
Dir.glob(filename).each do |file|
|
447
|
+
|
448
|
+
begin
|
449
|
+
FileUtils.rm_r file, force: force
|
450
|
+
rescue
|
451
|
+
puts ('RXFHelper#rm: ' + file + ' is a Directory').warning
|
452
|
+
end
|
453
|
+
|
454
|
+
end
|
455
|
+
|
456
|
+
else
|
457
|
+
FileUtils.rm_r filename, force: force
|
458
|
+
end
|
459
|
+
|
460
|
+
end
|
461
|
+
|
462
|
+
end
|
463
|
+
|
464
|
+
# recently_updated
|
465
|
+
#
|
466
|
+
def self.ru(path='.')
|
467
|
+
|
468
|
+
case path[/^\w+(?=:\/\/)/]
|
469
|
+
when 'dfs'
|
470
|
+
DfsFile.ru path
|
471
|
+
|
472
|
+
else
|
473
|
+
|
474
|
+
DirToXML.new(path, recursive: false, verbose: false).latest
|
475
|
+
|
476
|
+
end
|
477
|
+
|
478
|
+
end
|
479
|
+
|
480
|
+
# recently updated recursively check directories
|
481
|
+
#
|
482
|
+
def self.ru_r(path='.')
|
483
|
+
|
484
|
+
case path[/^\w+(?=:\/\/)/]
|
485
|
+
when 'dfs'
|
486
|
+
DfsFile.ru_r path
|
487
|
+
|
488
|
+
else
|
489
|
+
|
490
|
+
DirToXML.new(path, recursive: true, verbose: false).latest
|
491
|
+
|
492
|
+
end
|
493
|
+
|
494
|
+
end
|
495
|
+
|
417
496
|
def self.touch(filename, mtime: Time.now)
|
418
497
|
|
419
498
|
if @fs[0..2] == 'dfs' then
|
data.tar.gz.sig
CHANGED
Binary file
|
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.3.2
|
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-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rsc
|
@@ -63,20 +63,20 @@ dependencies:
|
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
66
|
+
version: '0.7'
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.
|
69
|
+
version: 0.7.1
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '0.
|
76
|
+
version: '0.7'
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 0.
|
79
|
+
version: 0.7.1
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: mymedia_ftp
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
179
|
+
version: 3.0.2
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|