Skip to content

nilabja-bhattacharya/eXplorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OS_Project: eXplorer

There are two modes to use this application

  1. Normal Mode
  2. Command Mode

NORMAL MODE

We can use Normal Mode to traverse directory

Keys to access directory are:

  • ENTER: Pressing ENTER can be used to enter directory or open files and application
  • BACKSPACE: Pressing BACKSPACE will take us to the parent directory of the current directory
  • LEFT ARROW: Pressing LEFT ARROW will take us to previous directory that we were in
  • RIGHT ARROW: Pressing RIGHT ARROW will take us to the directory that we were in before pressing the LEFT ARROW
  • COLON: Pressing COLON takes us to command mode
  • Q: Pressing Q exits the application

COMMAND MODE

Various functions of command mode are:

  • copy: copy command will copy the file or directory to the destination directory

      syntax: copy < filename or directory name - 1 > < filename or directory name - 2 > < destination directory >
      
      where filename must be relative to path  to current directory, if the path isn't preceded by '/' or '~'
      If destination directory path is relative to root directory for application it must be followed by a '~' or '/' i.e., ~/C/D or /C/D otherwise the application expects path is relative to current directory
    
  • move: move command will move the file or directory to the destination directory

      syntax: move < filename or directory name - 1 > < filename or directory name - 2 > < destination directory >
     
      where filename must be relative to path  to current directory, if the path isn't preceded by '/' or '~'
      If destination directory path is relative to root directory for application it must be followed by a '~' or '/' i.e., ~/C/D or /C/D otherwise the application expects path is relative to current directory
    
  • rename: rename command will rename the file and folder from old name to new name

         syntax: rename < old name > < new name >
         
         The application expects the folder or file path provided is relative to current directory if the filepath isn't preceded by '/' otherwise, the application expects the filepath is relative to root directory of application
    
  • create_file: create_file command creates file in the destination directory

          syntax: create_file < filename 1 > < filename 2 > < destination directory >
          
          The application expects the destination directory name provided is relative to root directory of application, if it is of form, ~/C/D or /C/D, or it is the current directory if destination directory is provided as '.' or it is relative to current directory if it is of form C/D
    
  • create_dir: create_dir command creates directory in the destination directory

          syntax: create_file < directory name 1 > < directory name 2 > < destination directory >
          
          The application expects the destination directory name provided is relative to root directory of application, if it is of form, ~/C/D or /C/D, or it is the current directory if destination directory is provided as '.' or it is relative to current directory if it is of form C/D
    
  • delete_file: delete_file command deletes the file for which path was provided

              syntax: delete_file < filename 1 > < filename 2 > ..
              
              The application expects the file path to be relative to the root directory of application, if it is of form, ~/C/D or /C/D, otherwise pathname is relative to current directory
    
  • delete_dir: delete_dir command deletes the file for which path was provided

              syntax: delete_dir < directory name 1 > < directory name 2 > ..
              
              The application expects the file path to be relative to the root directory of application, if it is of form, ~/C/D or /C/D, otherwise pathname is relative to current directory
    
  • goto: goto command takes us to the directory for which path was provided and the application switches to normal mode

      syntax: goto < directory path >
      
      The application expects the directory path to be root directory if directory path is provides as '/'. If directory path is provided as ~/C/D or /C/D then application expects it to be relative to root directory, if directory path is provided as C/D, then application expects it to be relative to current directory
    
  • search: search command searches files and directory with given name in current directory and recursively in all directory inside current directory, it displays the result in normal mode.

         syntax: search < filename or directory name >
    
  • snapshot: snapshot command takes snapshot of the directory and write it to the given file, it also displays the result for 5 sec in the application window (it works works like ls -R shell command)

            syntax: snapshot < directory name > < filename >
            
            The application expects the directory path and file path to be relative to current directory if path is of form C/D or relative to root directory of appication if it is of form /C/D
    
  • quit: quit command quits the application

        syntax: quit
    

About

File Explorer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published