diff --git a/binarycpython/utils/dataIO.py b/binarycpython/utils/dataIO.py index 9f62f748ccdecb42b841b72b3bdcda5461310128..e63b29996057d6138432d0eaf0846e7cc8e6b37e 100644 --- a/binarycpython/utils/dataIO.py +++ b/binarycpython/utils/dataIO.py @@ -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;