def level2_initialize(self):
        """Load abspath, dirname, basename, fname, ext, atime, ctime, mtime,
        size_on_disk attributes in initialization.
        
        **中文文档**
        
        比较全面但稍慢的WinFile对象初始化方法, 从绝对路径中取得:
        
        - 绝对路径
        - 父目录路径
        - 文件全名
        - 纯文件名
        - 文件扩展名
        - access time
        - create time
        - modify time
        - 文件占据磁盘大小
        """
        self.dirname, self.basename = os.path.split(self.abspath) # 目录名, 文件名
        self.fname, self.ext = os.path.splitext(self.basename) # 纯文件名, 文件扩展名
        self.ext = self.ext.lower()
        
        self.size_on_disk = os.path.getsize(self.abspath)
        self.atime = os.path.getatime(self.abspath) # 接触时间
        self.ctime = os.path.getctime(self.abspath) # 创建时间, 当文件被修改后不变
        self.mtime = os.path.getmtime(self.abspath)
def level2_initialize ( self ) : self . dirname , self . basename = os . path . split ( self . abspath ) self . fname , self . ext = os . path . splitext ( self . basename ) self . ext = self . ext . lower ( ) self . size_on_disk = os . path . getsize ( self . abspath ) self . atime = os . path . getatime ( self . abspath ) self . ctime = os . path . getctime ( self . abspath ) self . mtime = os . path . getmtime ( self . abspath )
Load abspath, dirname, basename, fname, ext, atime, ctime, mtime,
        size_on_disk attributes in initialization.
        
        **中文文档**
        
        比较全面但稍慢的WinFile对象初始化方法, 从绝对路径中取得:
        
        - 绝对路径
        - 父目录路径
        - 文件全名
        - 纯文件名
        - 文件扩展名
        - access time
        - create time
        - modify time
        - 文件占据磁盘大小