This commit is contained in:
Rikuoh Tsujitani 2024-05-22 14:22:02 +09:00
parent 93b13c84c5
commit 9a23e19ba2

18
ls.rb
View file

@ -5,24 +5,6 @@ require 'etc'
COLUMNS = 3 COLUMNS = 3
MARGIN = 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 def run
listed_filenames = list_filenames listed_filenames = list_filenames