Example #1
0
 def getStat(self):
     """
     Returns a dict of information about this directory.
     """
     try:
         if self.__pathStr=='':
             selfStr='.'
         else:
             selfStr=self.__pathStr
         return NativeUtils.convertStatObjectToDict(os.stat(selfStr))
     except Exception,e:
         NativeUtils.handleException(e,self.__pathStr)
Example #2
0
 def getStat(self):
     """
     Returns a dict of information about this directory.
     """
     try:
         if self.__pathStr == '':
             selfStr = '.'
         else:
             selfStr = self.__pathStr
         return NativeUtils.convertStatObjectToDict(os.stat(selfStr))
     except Exception, e:
         NativeUtils.handleException(e, self.__pathStr)
Example #3
0
    def getStat(self):
        """
        Returns a dict of information about the file. The keys are:

        * size
        * accessTime
        * modificationTime
        * creationTime
        * permissions - a string of the octal unix permissions.
        
        """
        # TODO: update docstring
        try:
            return NativeUtils.convertStatObjectToDict(os.stat(self.__pathStr))
        except Exception, e:
            NativeUtils.handleException(e, self.__pathStr)
Example #4
0
    def getStat(self):
        """
        Returns a dict of information about the file. The keys are:

        * size
        * accessTime
        * modificationTime
        * creationTime
        * permissions - a string of the octal unix permissions.
        
        """
        # TODO: update docstring
        try:
            return NativeUtils.convertStatObjectToDict(
                    os.stat(self.__pathStr))
        except Exception,e:
            NativeUtils.handleException(e,self.__pathStr)