forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
20
electron/node_modules/dir-compare/src/entry/entryComparator.js
generated
vendored
Normal file
20
electron/node_modules/dir-compare/src/entry/entryComparator.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* Determines order criteria for sorting entries in a directory.
|
||||
*/
|
||||
module.exports = {
|
||||
compareEntry: function (a, b, options) {
|
||||
if (a.isBrokenLink && b.isBrokenLink) {
|
||||
return options.compareNameHandler(a.name, b.name, options)
|
||||
} else if (a.isBrokenLink) {
|
||||
return -1
|
||||
} else if (b.isBrokenLink) {
|
||||
return 1
|
||||
} else if (a.stat.isDirectory() && b.stat.isFile()) {
|
||||
return -1
|
||||
} else if (a.stat.isFile() && b.stat.isDirectory()) {
|
||||
return 1
|
||||
} else {
|
||||
return options.compareNameHandler(a.name, b.name, options)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue