Re: remove file access denied(remove broke)

2018-09-15 Thread Josphe Brigmo via Digitalmars-d-learn
On Saturday, 15 September 2018 at 06:13:29 UTC, bauss wrote: On Friday, 14 September 2018 at 16:55:21 UTC, Josphe Brigmo wrote: On Friday, 14 September 2018 at 15:21:21 UTC, H. S. Teoh wrote: [...] It woudln't help. I'm dealing with over a million files and you'd need those files too. But

Re: remove file access denied(remove broke)

2018-09-15 Thread bauss via Digitalmars-d-learn
On Friday, 14 September 2018 at 16:55:21 UTC, Josphe Brigmo wrote: On Friday, 14 September 2018 at 15:21:21 UTC, H. S. Teoh wrote: [...] It woudln't help. I'm dealing with over a million files and you'd need those files too. But basically all I have done is created a new rename function:

Re: remove file access denied(remove broke)

2018-09-14 Thread Josphe Brigmo via Digitalmars-d-learn
On Friday, 14 September 2018 at 15:21:21 UTC, H. S. Teoh wrote: On Fri, Sep 14, 2018 at 02:36:34PM +, Josphe Brigmo via Digitalmars-d-learn wrote: [...] It happens on a bunch. I do get errors or overlong file names but this doesn't seem to be the case. The fact is, that simply using

Re: remove file access denied(remove broke)

2018-09-14 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Sep 14, 2018 at 02:36:34PM +, Josphe Brigmo via Digitalmars-d-learn wrote: [...] > It happens on a bunch. I do get errors or overlong file names but this > doesn't seem to be the case. > > The fact is, that simply using execute shell using the same file name > works. So this is a D

Re: remove file access denied(remove broke)

2018-09-14 Thread Josphe Brigmo via Digitalmars-d-learn
On Friday, 14 September 2018 at 13:28:41 UTC, Adam D. Ruppe wrote: On Friday, 14 September 2018 at 08:32:48 UTC, Josphe Brigmo wrote: Seems remove is broke. The source code for remove is DeleteFile(name), so not much room for bugs there, except maybe string conversion. What is the filename

Re: remove file access denied(remove broke)

2018-09-14 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 14 September 2018 at 08:32:48 UTC, Josphe Brigmo wrote: Seems remove is broke. The source code for remove is DeleteFile(name), so not much room for bugs there, except maybe string conversion. What is the filename you are working on?

Re: remove file access denied(remove broke)

2018-09-14 Thread Alex via Digitalmars-d-learn
On Friday, 14 September 2018 at 08:32:48 UTC, Josphe Brigmo wrote: No, I use read, there is no file handles. Pointless to post code because it won't offer much. Also, I have security privileges. I simply read the file to compare it's contents then I try to remove the file if it had the same

Re: remove file access denied(remove broke)

2018-09-14 Thread bauss via Digitalmars-d-learn
On Friday, 14 September 2018 at 08:32:48 UTC, Josphe Brigmo wrote: On Friday, 14 September 2018 at 04:48:09 UTC, Norm wrote: On Thursday, 13 September 2018 at 23:25:24 UTC, Josphe Brigmo wrote: I am trying to remove a file remove(filename); and I get an access denied! I can remove it from

Re: remove file access denied(remove broke)

2018-09-14 Thread Josphe Brigmo via Digitalmars-d-learn
On Friday, 14 September 2018 at 04:48:09 UTC, Norm wrote: On Thursday, 13 September 2018 at 23:25:24 UTC, Josphe Brigmo wrote: I am trying to remove a file remove(filename); and I get an access denied! I can remove it from explorer just fine. I am able to remove other files but there should