Exemplo n.º 1
0
 /// <exception cref="System.IO.IOException"/>
 protected internal override void ProcessArguments(List <PathData> args)
 {
     usagesTable = new FsUsage.TableBuilder("Filesystem", "Size", "Used", "Available",
                                            "Use%");
     usagesTable.SetRightAlign(1, 2, 3, 4);
     base.ProcessArguments(args);
     if (!usagesTable.IsEmpty())
     {
         usagesTable.PrintToStream(@out);
     }
 }
Exemplo n.º 2
0
 /// <exception cref="System.IO.IOException"/>
 protected internal override void ProcessPathArgument(PathData item)
 {
     usagesTable = new FsUsage.TableBuilder(2);
     // go one level deep on dirs from cmdline unless in summary mode
     if (!summary && item.stat.IsDirectory())
     {
         RecursePath(item);
     }
     else
     {
         base.ProcessPathArgument(item);
     }
     usagesTable.PrintToStream(@out);
 }