Re: How to validate directory path

2010-06-18 Thread Richard Carde
On 18 Jun 2010, at 01:01, Tom Rutter therut...@gmail.com wrote: The time in fact can vary. Some times it can be a few seconds and other times it may be 10s of minutes. I would hate it as a user if i make a request and then 5 minutes later i get told that the directory path i provided as

Re: How to validate directory path

2010-06-18 Thread Richard Carde
On 18 Jun 2010, at 09:01, Richard Carde rich...@carde.id.au wrote: On 18 Jun 2010, at 01:01, Tom Rutter therut...@gmail.com wrote: The time in fact can vary. Some times it can be a few seconds and other times it may be 10s of minutes. I would hate it as a user if i make a request and

Re: How to validate directory path

2010-06-17 Thread silky
On Thu, Jun 17, 2010 at 2:17 PM, Tom Rutter therut...@gmail.com wrote: Well my reasoning was that if i create it upfront and then something down the line goes bad, I've now left over this directory (incomplete work). Plus as Ann said Directory.CreateDirectory creates all levels

Re: How to validate directory path

2010-06-17 Thread Tom Rutter
Cheers guys i'll give the transaction manager a bash On Thu, Jun 17, 2010 at 4:11 PM, silky michaelsli...@gmail.com wrote: On Thu, Jun 17, 2010 at 2:17 PM, Tom Rutter therut...@gmail.com wrote: Well my reasoning was that if i create it upfront and then something down the line goes bad, I've

RE: How to validate directory path

2010-06-17 Thread James Chapman-Smith
[mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Tom Rutter Sent: Thursday, 17 June 2010 13:22 To: ozDotNet Subject: How to validate directory path Gday .net gurus Can I please get some recommendations on how to check if a directory can be created given a path if it already doesnt exist

Re: How to validate directory path

2010-06-17 Thread silky
On Thu, Jun 17, 2010 at 7:30 PM, James Chapman-Smith ja...@enigmativity.com wrote: How about this? Ignoring the terrible coding style, it assumes that you've got delete priveledges, which may not be the case. It also assumes that nothing gets put in that directory outside of the program, etc.

RE: How to validate directory path

2010-06-17 Thread James Chapman-Smith
. Please hit me with your criticisms. I want to learn. :-) Cheers. James. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of silky Sent: Thursday, 17 June 2010 20:02 To: ozDotNet Subject: Re: How to validate directory path On Thu, Jun 17

RE: How to validate directory path

2010-06-17 Thread David Kean
Ignoring the terrible coding style. Comments like this don't help the conversation. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of silky Sent: Thursday, June 17, 2010 3:32 AM To: ozDotNet Subject: Re: How to validate directory

RE: How to validate directory path

2010-06-17 Thread Ken Schaefer
your opinions to yourself -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Kean Sent: Thursday, 17 June 2010 10:41 PM To: michaelsli...@gmail.com; ozDotNet Subject: RE: How to validate directory path Ignoring the terrible

Re: How to validate directory path

2010-06-17 Thread David Richards
...@gmail.com; ozDotNet Subject: RE: How to validate directory path Ignoring the terrible coding style. Comments like this don't help the conversation. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of silky Sent: Thursday, June

Re: How to validate directory path

2010-06-17 Thread David Connors
On 17 June 2010 22:25, mike smith meski...@gmail.com wrote: The most cogent argument against the idea of creating and then deleting has already been made: Namely, sure, you can do it now, but may not be able to in 10 seconds time. Hypothesise that this is a network share, and the network

Re: How to validate directory path

2010-06-17 Thread silky
On Fri, Jun 18, 2010 at 7:43 AM, David Richards ausdot...@davidsuniverse.com wrote: Ah silky, You must have a huge target painted on you with a little picture of a flame in the middle :) Someone's got to be the bad guy, right? :) Not that I want to take sides here but the OP didn't seem to

Re: How to validate directory path

2010-06-17 Thread silky
On Fri, Jun 18, 2010 at 7:58 AM, David Connors da...@codify.com wrote: On 17 June 2010 22:25, mike smith meski...@gmail.com wrote: The most cogent argument against the idea of creating and then deleting has already been made:  Namely, sure, you can do it now, but may not be able to in 10

Re: How to validate directory path

2010-06-17 Thread noonie
...@ozdotnet.com [ozdotnet-boun...@ozdotnet.com] On Behalf Of Tom Rutter [therut...@gmail.com] *Sent:* Thursday, 17 June 2010 11:51 AM *To:* ozDotNet *Subject:* How to validate directory path Gday .net gurus Can I please get some recommendations on how to check if a directory can be created given

Re: How to validate directory path

2010-06-17 Thread Tom Rutter
-- *From:* ozdotnet-boun...@ozdotnet.com [ozdotnet-boun...@ozdotnet.com] On Behalf Of Tom Rutter [therut...@gmail.com] *Sent:* Thursday, 17 June 2010 11:51 AM *To:* ozDotNet *Subject:* How to validate directory path Gday .net gurus Can I please get some