projects
/
findit
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
cabaad8dacb1a7c0f56bc5ff0b1c073d110f8d81
[findit]
/
src
/
file.py
1
#!/usr/bin/env python
2
# -*-coding: utf-8 -*-
3
# vim: sw=4 ts=4 expandtab ai
4
# pylint: disable-msg=C0301
5
6
class File(object):
7
8
def show(self):
9
self.cur_ui.show(self.fl_path, self.fl_size)
10
11
def __init__(self, ui, fpath, fsize):
12
if ui is 'console':
13
from consprint import ConsPrint
14
self.cur_ui = ConsPrint()
15
self.fl_path = fpath
16
self.fl_size = fsize