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
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
How about this?
public static bool CanCreateDir(string path)
{
var @return = false;
try
{
var actions = new ListAction();
var di = new System.IO.DirectoryInfo(path);
while (true)
{
if (di.Exists)
{
Hi Alastair,
Doing this would change the expected behaviour of the Round function and
lead to ambiguous code. If you could do this then adding some bit of new
code that changes the rounding could invalidate existing code that was
functioning correctly. Think space shuttle challenger-like rounding
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.
Hi silky,
It only creates then deletes folders that don't exist so nothing else (bar
some sort of file system watching rogue program) will write to those
folders.
But what do you mean terrible coding style? The only thing that I can
fault is the use of the general-purpose `catch` statement.
CRMs can be grouped by the following categories with the leading products in
each
Enterprise - TYPO3, SharePoint
Social - Drupal, Wordpress
Business card site - Joomla
What are your business requirements and usage scenarios?
Michael Nemtsev
Microsoft MVP
B: http://msmvps.com/blogs/laflour
S:
Doesn't math.floor() do what you want?
Ian Thomas
Victoria Park, Western Australia
-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Alastair Waddell
Sent: Thursday, 17 June 2010 12:20 PM
To:
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
+1
terrible is one of those subjective adjectives that casts the subject in a
negative light, and by implication the person who posted it. If you are going
to take pot-shots from the sidelines (i.e. not provide an illustrative counter
example to demonstrate your point) then you should keep
Ah silky,
You must have a huge target painted on you with a little picture of a
flame in the middle :)
Not that I want to take sides here but the OP didn't seem to take
offense to the offending comment so there's no need to pounce on
someone in that regard. I highly recommend making sure you
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
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
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
Greetings,
On 17 June 2010 14:12, Tom Rutter therut...@gmail.com wrote:
Mainly because of design I guess. I have a function that uses the folder
path way down the line someplace after a lot of other work has been done, so
i dont want to do lots of stuff and then find out the folder path i was
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 input is bad. I prefer to get told that up front
On Fri, Jun 18, 2010 at
Is it possible to overload the = operator using an extension method in
either c# or vb .net 4? This SO thread says no
http://stackoverflow.com/questions/172658/operator-overloading-with-c-extension-methods
Cheers
Nope. Unfortunately, they don't support adding Properties either. :(
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On
Behalf Of Tom Rutter
Sent: Thursday, June 17, 2010 6:35 PM
To: ozDotNet
Subject: operator overload extension method??
Is it possible to overload the
18 matches
Mail list logo