def get_file(self, path):
        """Get the file matching the given path from a connected device.
        The path must be a file.

        Returns a dictionary (filename, File)."""
        path = os.path.normpath(path)
        cmd = ["ls", "-lZ", "'" + path + "'"]
        listing = subprocess.check_output(self.shell + cmd).split('\n')
        line = listing[0].strip("\r")
        # Parse ls -lZ output for a single file
        try:
            f = File(line, os.path.dirname(path), self.android_version)
        except __HOLE__ as e:
            self.log.error(e)
            return None
        else:
            return {f.absname: f}
dataset/ETHPy150Open seandroid-analytics/seal/sealib/device.py/Device.get_file