-l
This commit is contained in:
parent
93b13c84c5
commit
9a23e19ba2
1 changed files with 0 additions and 18 deletions
18
ls.rb
18
ls.rb
|
@ -5,24 +5,6 @@ require 'etc'
|
|||
|
||||
COLUMNS = 3
|
||||
MARGIN = 3
|
||||
PERMISSION = {
|
||||
'0' => '---',
|
||||
'1' => '--x',
|
||||
'2' => '-w-',
|
||||
'3' => '-wx',
|
||||
'4' => 'r--',
|
||||
'5' => 'r-x',
|
||||
'6' => 'rw-',
|
||||
'7' => 'rwx'
|
||||
}.freeze
|
||||
FILETYPE = {
|
||||
'1' => 'p',
|
||||
'2' => 'c',
|
||||
'4' => 'd',
|
||||
'6' => 'b',
|
||||
'10' => '-',
|
||||
'12' => 'l'
|
||||
}.freeze
|
||||
|
||||
def run
|
||||
listed_filenames = list_filenames
|
||||
|
|
Loading…
Reference in a new issue