summaryrefslogtreecommitdiffstats
path: root/gluster/swift/common/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gluster/swift/common/utils.py')
-rw-r--r--gluster/swift/common/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gluster/swift/common/utils.py b/gluster/swift/common/utils.py
index 40ede7e..5547ea4 100644
--- a/gluster/swift/common/utils.py
+++ b/gluster/swift/common/utils.py
@@ -13,11 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import logging
import os
+import stat
import errno
import xattr
import random
+import logging
from hashlib import md5
from eventlet import sleep
import cPickle as pickle
@@ -325,7 +326,7 @@ def _get_account_details_from_fs(acc_path):
container_count = 0
acc_stats = do_stat(acc_path)
- is_dir = (acc_stats.st_mode & 0040000) != 0
+ is_dir = stat.S_ISDIR(acc_stats.st_mode)
if is_dir:
for name in do_listdir(acc_path):
if name.lower() == TEMP_DIR \