]> arthur.barton.de Git - bup.git/commit
drecurse: use portable S_ISDIR() instead of deriving S_IFMT
authorRob Browning <rlb@defaultvalue.org>
Sat, 27 Jun 2020 16:47:31 +0000 (11:47 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 5 Jul 2020 16:16:23 +0000 (11:16 -0500)
commit3aff6e4b603538931419572d963b93c65308f068
tree5490c0be766e681d045f62ca2ef7fca5574b2a60
parentdd6794a7cc9a21c942cecf8bcdd5a8f217e197fa
drecurse: use portable S_ISDIR() instead of deriving S_IFMT

In some simple testing, there didn't appear to be any notable,
consistent performance difference, and the S_IFMT(0xffffffff) call
fails with an OverflowError on at least macos.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/drecurse.py