VictoriaFreSh 2021.7.30 → 2021.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/victoriafresh.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4d0010fe75ced288008ae971b82838a2609ef847ee25c11253869a9ed79f04e
|
4
|
+
data.tar.gz: 108db43b445c540443113bda9859c9b9a7ff007538e84f401cd954d66ecddf89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97522a35b8fffa090357609ee1fa03cd482691e740177df23036700c91286578f4eb2dc6ad2b06877ed9ea806a8ca6b7c73b1de5b5f1b042b767f4c9304804eb
|
7
|
+
data.tar.gz: 70125c3bad87748ef4faf7599cb9946fc4ee741190173064b294218cfe26be5aeb815f7e3e59bb5a277a9bf8e523ac036bf8c94d6eb42b69c57691d9f70cb815
|
data/lib/victoriafresh.rb
CHANGED
@@ -375,7 +375,7 @@ class VictoriaFresh
|
|
375
375
|
rescue Errno::EACCES #权限受限
|
376
376
|
end #begin #读取时间戳
|
377
377
|
|
378
|
-
if
|
378
|
+
if isFile #是文件,不用再列出其子文件了。
|
379
379
|
packagedFile['file_length']=directoryPathName.size #记录文件的内容长度。
|
380
380
|
|
381
381
|
#读取文件内容:
|
@@ -406,7 +406,9 @@ class VictoriaFresh
|
|
406
406
|
subFileStartIndex=startIndex #子文件的起始位置,以此目录的起始位置为基准。
|
407
407
|
|
408
408
|
packagedFile['file_length']=0 #本目录的内容长度。
|
409
|
-
|
409
|
+
|
410
|
+
puts "Listing for #{directoryPathName}" # Debug
|
411
|
+
|
410
412
|
directoryPathName.each_child do |subFile| #一个个文件地处理。
|
411
413
|
# puts("sub file: #{subFile}, class: #{subFile.class}, symlink: #{subFile.symlink?}, expand_path: #{subFile.expand_path}, file?: #{subFile.file?}") #Debug.
|
412
414
|
# checkMemoryUsage(221)
|