VictoriaFreSh 2020.7.26 → 2020.7.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/victoriafresh.rb +10 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b508477bc4a6dfd9d29ef579f6802fc9474950d79619640fd93728afcc9be519
4
- data.tar.gz: 2c95307a5f9306a4ece323578ef65a0a1ccc77eb738d6088a76d43259bc09c7e
3
+ metadata.gz: '068f826ae2bb63aeeb9102b4e3b4a73cab1a09b439ffcf625f8c178a67f4a933'
4
+ data.tar.gz: a4ed53b45631676cb9df08fcaae80095de3308f95bdae33f75977e3011dc7b16
5
5
  SHA512:
6
- metadata.gz: ac8bdc0824a17cd2a9aa26717fe72b6ffb2cdc89209cfa0ff4ec3fd3ecb5efc4d5c79ad2ad3eac88022046be9496c857e6772a39b25735e448fb03e986a1b7aa
7
- data.tar.gz: 482010c930b390ab0ed4836a0cfc68ad7557cf7e44e0517a25e4cb2a9a98fdd4b22c7c7ab2da57da097b56df71bc28c24c311ffbd0c17ac98b3b378646e6bf3f
6
+ metadata.gz: 582549c2df3debdab3a810586d684c4e2f2edfcca2d3284011c4b5a4d78c82c9c24eb8acde9ce7e32135132b59f0b3e3943f6e427a16ab1bf1e1dd788547c964
7
+ data.tar.gz: 6382fad74196eaaaaf9c1569618a505fadbfc6dbb1ec00cbc71b7aa3285fefe0f729284d128c5138f006b7134eaae724d282b09450fee097af07b21ca13ca91b
@@ -23,8 +23,16 @@ class VictoriaFresh
23
23
 
24
24
  def makeDirectory(pathPrefix, packagedFile) #创建目录
25
25
  puts 'mkdir' #Debug
26
- puts File.join(pathPrefix, packagedFile.name) #Debug.
27
- Dir.mkdir(File.join(pathPrefix, packagedFile.name)) #=> 0
26
+
27
+ pathToMake=File.join(pathPrefix, packagedFile.name)
28
+
29
+ puts pathToMake #Debug.
30
+
31
+ if (Dir.exist?(pathToMake)) #目录已经存在
32
+ else #目录 不存在
33
+ Dir.mkdir(pathToMake) #=> 0
34
+ end #if (Dir.exist?(pathToMake)) #目录已经存在
35
+
28
36
 
29
37
  end #makeDirectory(pathPrefix, packagedFile) #创建目录
30
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: VictoriaFreSh
3
3
  version: !ruby/object:Gem::Version
4
- version: 2020.7.26
4
+ version: 2020.7.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hxcan Cai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-26 00:00:00.000000000 Z
11
+ date: 2020-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: beefcake