Exemplo n.º 1
0
 def isSignificantPublicFile(self, fn):
     """
     This tells the AtFile.read logic whether to import a public file
     or use an existing public file.
     """
     return (g.os_path_exists(fn) and g.os_path_isfile(fn)
             and g.os_path_getsize(fn) > 10)
Exemplo n.º 2
0
 def isSignificantPublicFile(self, fn):
     '''This tells the AtFile.read logic whether to import a public file
     or use an existing public file.'''
     return (
         g.os_path_exists(fn) and
         g.os_path_isfile(fn) and
         g.os_path_getsize(fn) > 10
     )