summaryrefslogtreecommitdiffstats
path: root/glustolibs-io/shared_files/scripts/file_dir_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-io/shared_files/scripts/file_dir_ops.py')
-rwxr-xr-xglustolibs-io/shared_files/scripts/file_dir_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-io/shared_files/scripts/file_dir_ops.py b/glustolibs-io/shared_files/scripts/file_dir_ops.py
index 2ea6a96..96e5326 100755
--- a/glustolibs-io/shared_files/scripts/file_dir_ops.py
+++ b/glustolibs-io/shared_files/scripts/file_dir_ops.py
@@ -48,7 +48,7 @@ def is_root(path):
Returns:
True if path is '/' , False otherwise
"""
- if os.path.realpath(os.path.abspath(path)) is '/':
+ if os.path.realpath(os.path.abspath(path)) == '/':
print ("Directory '%s' is the root of filesystem. "
"Not performing any operations on the root of filesystem" %
os.path.abspath(path))