Skip to content
Snippets Groups Projects
Commit eb9d4cac authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add nfspath function (not working yet)

parent 28175d90
No related branches found
No related tags found
No related merge requests found
......@@ -730,3 +730,13 @@ class dataIO():
if vb:
print("open() return file_object =",file_object)
return file_object
def NFSpath(self,path):
"""
Test path to see if it's on an NFS mount.
"""
if os.path.exists(path) and os.path.ismount(path):
s = os.stat(path)
print(s)
# use `stat -f -L -c %T "$_[0]"`=~/^nfs/io ? 1 : 0;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment