# Path: pgctl/debug.py
# def trace(msg, *args):
#     debug(msg, *args, level=3)


from .debug import trace
    from os import stat
    from os import listdir
    from glob import glob
            from os.path import join
                from os import readlink
    from argparse import ArgumentParser
    from sys import argv
"""\
usage: pgctl-fuser [-d] file [file ...]

Shows the pids (of the current user) that have this file opened.
This is useful for finding which processes hold a file lock (flock).
This has the same behavior as `lsof -t file`, but is *much* faster.
"""


def stat(path):
    try:
        return stat(path)
    except OSError as error:

# Path: pgctl/debug.py
# def trace(msg, *args):
#     debug(msg, *args, level=3)


# Path: pgctl/fuser.py
from .debug import trace
    from os import stat
    from os import listdir
    from glob import glob
            from os.path import join
                from os import readlink
    from argparse import ArgumentParser
    from sys import argv

"""\
usage: pgctl-fuser [-d] file [file ...]

Shows the pids (of the current user) that have this file opened.
This is useful for finding which processes hold a file lock (flock).
This has the same behavior as `lsof -t file`, but is *much* faster.
"""


def stat(path):
    try:
        return stat(path)
    except OSError as error:

        trace('fuser suppressed: %s', error)