Trees | Indices | Help |
|
---|
|
1 #-*- coding: utf8 -* 2 # 3 # Max E. Kuznecov ~syhpoon <syhpoon@syhpoon.name> 2008 4 # 5 # This file is part of XYZCommander. 6 # XYZCommander is free software: you can redistribute it and/or modify 7 # it under the terms of the GNU Lesser Public License as published by 8 # the Free Software Foundation, either version 3 of the License, or 9 # (at your option) any later version. 10 # XYZCommander is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU Lesser Public License for more details. 14 # You should have received a copy of the GNU Lesser Public License 15 # along with XYZCommander. If not, see <http://www.gnu.org/licenses/>. 16 17 from libxyz.core import utils 18 19 import os.path 2022 """ 23 Abstract interface for VFS objects 24 """ 25 29 30 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3138 39 #++++++++++++++++++++++++++++++++++++++++++++++++ 4042 """ 43 A VFS file information interface 44 """ 4511847 self.enc = enc or xyzenc 48 self.path = os.path.abspath(path) 49 # File name 50 self.name = os.path.basename(utils.ustring(self.path, self.enc)) 51 52 # File type 53 self.ftype = None 54 55 # Access time 56 self.atime = None 57 58 # Modified time 59 self.mtime = None 60 61 # Changed time 62 self.ctime = None 63 64 # Size in bytes 65 self.size = None 66 67 # Owner UID 68 self.uid = None 69 70 # Group 71 self.gid = None 72 73 # Mode 74 self.mode = None 75 76 # Inode 77 self.inode = None 78 79 # Visual file type 80 self.vtype = None 81 82 # Visual file representation 83 self.visual = None 84 85 # File info 86 self.info = None 87 88 # Any type-specific data 89 self.data = None 90 91 # List of significant attributes 92 self.attributes = ()93 94 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 95 98 99 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 100 103 104 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 105 108 109 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 110 113 114 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 115
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 3 02:02:18 2009 | http://epydoc.sourceforge.net |