summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers/DiskHelpers.py
blob: 79b661e254fede78fd089251f4b1d5e8e5e8baf6 (plain)
1
2
3
4
5
6
7
8
9
import stat
import os


def disk_exists(path):
    try:
        return stat.S_ISBLK(os.stat(path).st_mode)
    except:
        return False