Class FileOps


  • public class FileOps
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cat​(java.lang.String pathStr)  
      java.lang.String getWorkingDirectory()  
      void listFiles​(java.lang.String pathStr)  
      void mkdir​(java.lang.String pathStr)  
      void pwd()  
      void setWorkingDirectory​(java.lang.String pathStr)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileOps

        public FileOps​(ShellSession session)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getWorkingDirectory

        public java.lang.String getWorkingDirectory()
      • setWorkingDirectory

        public void setWorkingDirectory​(java.lang.String pathStr)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • listFiles

        public void listFiles​(java.lang.String pathStr)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pwd

        public void pwd()
      • cat

        public void cat​(java.lang.String pathStr)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • mkdir

        public void mkdir​(java.lang.String pathStr)
                   throws java.io.IOException
        Throws:
        java.io.IOException