summaryrefslogtreecommitdiff
path: root/node_modules/dir-compare/src/statistics/statisticsLifecycle.js
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/dir-compare/src/statistics/statisticsLifecycle.js
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/dir-compare/src/statistics/statisticsLifecycle.js')
-rw-r--r--node_modules/dir-compare/src/statistics/statisticsLifecycle.js59
1 files changed, 0 insertions, 59 deletions
diff --git a/node_modules/dir-compare/src/statistics/statisticsLifecycle.js b/node_modules/dir-compare/src/statistics/statisticsLifecycle.js
deleted file mode 100644
index 549ec5e..0000000
--- a/node_modules/dir-compare/src/statistics/statisticsLifecycle.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Controls creation/completion of global statistics object.
- */
-module.exports = {
- initStats(options) {
- var symlinkStatistics = undefined
- if (options.compareSymlink) {
- symlinkStatistics = {
- distinctSymlinks: 0,
- equalSymlinks: 0,
- leftSymlinks: 0,
- rightSymlinks: 0,
- differencesSymlinks: 0,
- totalSymlinks: 0,
- }
- }
- var brokenLinksStatistics = {
- leftBrokenLinks: 0,
- rightBrokenLinks: 0,
- distinctBrokenLinks: 0,
- }
- return {
- distinct: 0,
- equal: 0,
- left: 0,
- right: 0,
- distinctFiles: 0,
- equalFiles: 0,
- leftFiles: 0,
- rightFiles: 0,
- distinctDirs: 0,
- equalDirs: 0,
- leftDirs: 0,
- rightDirs: 0,
- brokenLinks: brokenLinksStatistics,
- symlinks: symlinkStatistics,
- same: undefined
- }
- },
-
- completeStatistics(statistics, options) {
- statistics.differences = statistics.distinct + statistics.left + statistics.right
- statistics.differencesFiles = statistics.distinctFiles + statistics.leftFiles + statistics.rightFiles
- statistics.differencesDirs = statistics.distinctDirs + statistics.leftDirs + statistics.rightDirs
- statistics.total = statistics.equal + statistics.differences
- statistics.totalFiles = statistics.equalFiles + statistics.differencesFiles
- statistics.totalDirs = statistics.equalDirs + statistics.differencesDirs
- var brokenLInksStats = statistics.brokenLinks
- brokenLInksStats.totalBrokenLinks = brokenLInksStats.leftBrokenLinks + brokenLInksStats.rightBrokenLinks + brokenLInksStats.distinctBrokenLinks
- statistics.same = statistics.differences ? false : true
-
- if (options.compareSymlink) {
- statistics.symlinks.differencesSymlinks = statistics.symlinks.distinctSymlinks +
- statistics.symlinks.leftSymlinks + statistics.symlinks.rightSymlinks
- statistics.symlinks.totalSymlinks = statistics.symlinks.differencesSymlinks + statistics.symlinks.equalSymlinks
- }
- }
-
-} \ No newline at end of file