On Tue, 10 Mar 2009 at 22:41, Mahesh S wrote:
I am from the PyS60 (Python port on S60 platform) team. We have ported the Python 2.5.4 core in the latest 1.9.x series of PyS60. http://wiki.opensource.nokia.com/projects/PyS60Currently we have a problem with the mailbox module. Check the code snippet below, from the mailbox module. *def clean(self): """Delete old files in "tmp".""" now = time.time() for entry in os.listdir(os.path.join(self._**path, 'tmp')): path = os.path.join(self._path, 'tmp', entry) if now - os.path.getatime(path) > 129600: # 60 * 60 * 36 os.remove(path)* The code in red, tries to delete the files that are not accessed in the last 36 hours. Any idea as to how this is supposed to work on platforms that do not support access time, for example Symbian/S60 ? Any work around ?
Many unix systems (especially laptops) now run with the 'noatime' option set on their file systems. On my system with noatime set, atime appears to be equal to mtime, so assuming you have mtime, returning that for atime would appear to be de facto standards compliant. -- R. David Murray http://www.bitdance.com _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
