Every line of 'os path getmtime' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
33 def getmtime(path): 34 fspath = efs2(path) 35 return os.path.getmtime(fspath)
141 def getmtime(filename): 142 """Return the last modification time of a file, reported by os.stat().""" 143 return os.stat(filename).st_mtime
50 def last_modified(fname): 51 return os.path.getmtime(fname)
190 def mtime(path): 191 try: 192 return os.path.getmtime(path) 193 except os.error: 194 return 0
33 def getmtime(f): 34 return check_output(['git', 'log', '-1', '--format="%ai"', '--', f])
39 def get_FileModifyTime(filePath): 40 #filePath = str(filePath,'utf8') 41 t = os.path.getmtime(filePath) 42 return int(t)
16 def getdate(self, fn): 17 return getmtime(fn)
172 @staticmethod 173 def update_mod_time(full_path): 174 """Update modification time. 175 176 Args: 177 full_path (str): current full path to file. 178 """ 179 log.debug("updating modification time for file '%s'", full_path) 180 mod_time = path.getmtime(full_path) 181 File.__modification_cache[full_path] = mod_time
13 @cache 14 def _get_file_timestamp(filename): 15 return os.path.getmtime(filename)
170 def get_mtime(self, filename): 171 t = os.path.getmtime(filename) 172 return datetime.fromtimestamp(t)