The comparison will be intrerrupted with an EACCES exception. Unreadable files or directories are normally reported as errors. Also statistics summarizes differences caused by symbolik links. If entries are different because of symlinks, reason will be different-symlink. These rules are applied in addition to the other comparison modes ie. both are symlinks but point to different locations.In this mode two entries with identical name are considered different if Using compareSymlink option causes dircompare to check symlink values for equality. Since 2.0 they are treated as a special type of entry - broken-link - and are available as stats ( totalBrokenLinks, distinctBrokenLinks. Version 1.x treats broken links as ENOENT: no such file or directory. Unless compareSymlink option is used, symbolic links are resolved and any comparison is applied to the file/directory they point to.Ĭircular loops are handled by breaking the loop as soon as it is detected. The default builder can be used as an example. Const dircompare = require ( 'dir-compare' ) const options = const res = dircompare.
0 Comments
Leave a Reply. |