Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>isdir() - check if directory is valid</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     isdir() - check if directory is valid
  Usage:    <logical> = isdir(<directory>)
  Params:   string <directory> - directory name to validate
  Returns:  logical .T. if directory exists, .F. if not or error

 ---------------------------------- Example ---------------------------------

                 @ 10,0  say "Enter directory to change to: "
                 @ 10,30 get tdir pict "@!"
                 read

                 if ! (isdir(tdir))
                      ? "Invalid Directory Name Entered"
                 else
                      chdir(tdir)
                 endif


See Also: curdir() chdir() mkdir() rmdir()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson