Re: [Tutor] getopts question

2007-03-31 Thread Rikard Bosnjakovic
On 30 Mar 2007 20:23:00 -0400, Greg Perry <[EMAIL PROTECTED]> wrote: > Yeah I figured that. I am trying to find a way to have the program detect if > the user input is a file or directory, which is easy enough with os.path. > However, os.path makes no distinction between a regular file and a ma

Re: [Tutor] getopts question

2007-03-31 Thread Roel Schroeven
Greg Perry schreef: > Yeah I figured that. I am trying to find a way to have the program > detect if the user input is a file or directory, which is easy enough > with os.path. However, os.path makes no distinction between a > regular file and a mask, eg filename.txt or *.txt. I guess I'll have

Re: [Tutor] getopts question

2007-03-30 Thread Andreas Kostyrka
* Greg Perry <[EMAIL PROTECTED]> [070331 01:21]: > Yeah I figured that. I am trying to find a way to have the program detect if > the user input is a file or directory, which is easy enough with os.path. > However, os.path makes no distinction between a regular file and a mask, eg > filename.t

Re: [Tutor] getopts question

2007-03-30 Thread Greg Perry
Yeah I figured that. I am trying to find a way to have the program detect if the user input is a file or directory, which is easy enough with os.path. However, os.path makes no distinction between a regular file and a mask, eg filename.txt or *.txt. I guess I'll have to have a second set of t

Re: [Tutor] getopts question

2007-03-30 Thread Andreas Kostyrka
* Kent Johnson <[EMAIL PROTECTED]> [070330 13:04]: > Greg Perry wrote: > > Hello List Members, > > > > I am working on a simple program and would like to know the best way > to approach this. Using getops I am parsing the argv array to grab > command line options; from the command line the user ca

Re: [Tutor] getopts question

2007-03-30 Thread Kent Johnson
Greg Perry wrote: > Hello List Members, > > I am working on a simple program and would like to know the best way to approach this. Using getops I am parsing the argv array to grab command line options; from the command line the user can specify either a filename or a directory (but not both). Is t

[Tutor] getopts question

2007-03-29 Thread Greg Perry
Hello List Members, I am working on a simple program and would like to know the best way to approach this. Using getops I am parsing the argv array to grab command line options; from the command line the user can specify either a filename or a directory (but not both). Is there an eloquent wa