Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/pyrocore-0.4.2/src/pyrocore/torrent/rtorrent.py   pyrocore(Download)
            if not os.path.exists(self._download_dir):
                raise error.UserError("Non-existing download directory %r" % self._download_dir)
            self.startup = os.path.getmtime(os.path.join(self._session_dir, "rtorrent.lock"))
 
        # Return connection

src/p/y/pyrocore-0.4.2/src/pyrocore/util/metafile.py   pyrocore(Download)
        resume["files"].append(dict(
            priority=1,
            mtime=int(os.path.getmtime(filepath)),
            completed=(offset+fileinfo["length"]+piece_length-1) // piece_length
                     - offset // piece_length,

src/p/y/pyrocore-0.4.2/src/pyrocore/torrent/formatting.py   pyrocore(Download)
def fmt_mtime(val):
    """ Modification time of a path.
    """
    return os.path.getmtime(val) if val else 0
 

src/p/y/pyrocore-0.4.2/src/pyrocore/screenlet/rtorrent.py   pyrocore(Download)
 
            try:
                self.startup = os.path.getmtime(os.path.join(proxy.get_session().rstrip(os.sep), "rtorrent.lock"))
            except EnvironmentError, exc:
                print "Can't get start time: %s" % exc