Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
4291ab83
Commit
4291ab83
authored
Feb 23, 2018
by
Felix Seibert
Browse files
check for xtfsutil before executing verification
parent
561d50a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/verify.py
View file @
4291ab83
import
os
import
subprocess
import
div_util
import
OSDManager.ExecutableNotFoundException
as
ExecutableNotFoundException
'''
verify a tile folder: check whether all files in its subdirectories
(representing scenes) are located on the same OSD.
...
...
@@ -35,6 +38,8 @@ gmsFolder/utmStripes/utmTiles/scenes/files
def
verify_gms_folder
(
gms_folder
,
verbose
=
False
):
if
not
div_util
.
check_for_executable
(
'xtfsutil'
):
raise
ExecutableNotFoundException
(
"No xtfsutil found. Please make sure it is contained in your PATH."
)
layout_is_correct
=
True
for
utmStripe
in
os
.
listdir
(
gms_folder
):
if
not
os
.
path
.
isdir
(
gms_folder
+
"/"
+
utmStripe
):
...
...
Felix Seibert
@bzcseibe
mentioned in commit
d1540eb2
·
Feb 23, 2018
mentioned in commit
d1540eb2
mentioned in commit d1540eb257ab14aec543a1a5ce9e9cfa7f74dcdf
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment