Sindbad~EG File Manager

Current Path : /opt/imh-python/lib/python3.9/site-packages/ntc_templates/templates/
Upload File :
Current File : //opt/imh-python/lib/python3.9/site-packages/ntc_templates/templates/arista_eos_dir.textfsm

Value Filldown FILE_SYSTEM (\S+)
Value PERMISSIONS (\S+)
Value SIZE (\d+)
Value DATE_TIME (\S+\s+\d+\s+((\d+)|(\d+:\d+))|\<no date\>)
Value NAME (\S+)
Value Fillup TOTAL_SIZE (\d+)
Value Fillup TOTAL_FREE (\d+)

Start
  ^Directory\s+of\s+${FILE_SYSTEM} -> Dispatcher
  ^\s*$$
  ^. -> Error "LINE NOT FOUND"

Dispatcher
  ^\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME} -> Record Files
  ^Directory\s+of -> Continue.Record
  ^Directory\s+of\s+${FILE_SYSTEM}
  ^No\s+files -> NoFiles
  ^\s*$$
  ^\. -> Error "LINE NOT FOUND"

Files
  ^\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME} -> Record
  ^${TOTAL_SIZE}\s+\S+\s+\S+\s+\(${TOTAL_FREE}\s+\S+\s+\S+\) -> Start
  ^Directory\s+of\s+${FILE_SYSTEM} -> Dispatcher
  ^No\s+space\s+information -> Start
  ^\s*$$
  ^. -> Error "LINE NOT FOUND"

NoFiles
  ^${TOTAL_SIZE}\s+\S+\s+\S+\s+\(${TOTAL_FREE}\s+\S+\s+\S+\) -> Record Start
  ^Directory\s+of -> Continue.Record
  ^Directory\s+of\s+${FILE_SYSTEM} -> Dispatcher
  ^\s*$$
  ^\. -> Error "LINE NOT FOUND"

EOF

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists