Safe Overwrite Stopping Copy Operations.

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Safe Overwrite Stopping Copy Operations.

Post by neutrox »

I have being this problem when I want to copy large files.

Safe overwrite is not being done as the temp files cannot be created because the target drive *where the system's TEMP folder is set* has not enough space, stopping the whole operation.

The final destination (ie, the real folder where the large file will be copied to) has enough drive space, though.

A little smartness will be welcome, sure.

eil
Posts: 1931
Joined: 13 Jan 2011 19:44

Re: Safe Overwrite Stopping Copy Operations.

Post by eil »

that's the point of Safe Copy, imo. in cases like one you have(i did have same numerous times), just temporally disable Safe option.
Win 7 SP1 x64 100% 1366x768|1900x1080

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Safe Overwrite Stopping Copy Operations.

Post by PeterH »

I don't understand?

Help says for "Safe overwrite":
Copy: Source is copied to a new temporary target file in the target folder.
Especially note: "in the target folder"! (Everything else would make no sense IMHO.)

So the question should only be for enough free storage in the destination directory, i.e. the destination drive. No matter where temp files are located.

If it's not so XY would handle it wrong.

neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Re: Safe Overwrite Stopping Copy Operations.

Post by neutrox »

That's why I'm feeling there's something wrong here.

Currently I can't reproduce the error as my drives have plenty of space but I got some of those warnings & operation halts enough to want this to be improved.

That's why in the past I was interested in a way to get drives' free space so I could try to control the problem via script. :roll:

Other ideas come to mind since then but no cookie this far.

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Safe Overwrite Stopping Copy Operations.

Post by admin »

XY cannot create more space. So what should it do then?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Safe Overwrite Stopping Copy Operations.

Post by highend »

I'd suggest: Autoformat all drives.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Safe Overwrite Stopping Copy Operations.

Post by admin »

Killer feature!

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Safe Overwrite Stopping Copy Operations.

Post by highend »

I want it NOW!

Code: Select all

if($username == "neutrox") { format("all", "donotask", "unrecoverable by testdisk"); }
SCNR
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Safe Overwrite Stopping Copy Operations.

Post by PeterH »

admin wrote:XY cannot create more space. So what should it do then?
If I understood it correct, there was enough space on the destination drive, while he had problems with space on the drive with his temporary files.

I would not expect that the latter would be used in any way??

So maybe I understood it wrong, neutrox interpreted it wrong, or there is some bug...

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Safe Overwrite Stopping Copy Operations.

Post by admin »

It cannot be solved (unless you want to get false "not enough space" messages): there is no way in advance to surely determine the needed space in an overwrite situation because it is not known how the user will react on an overwrite prompt.

It would surely help to turn off "Safe Overwrite". It's only needed in shaky networks anyway.

eil
Posts: 1931
Joined: 13 Jan 2011 19:44

Re: Safe Overwrite Stopping Copy Operations.

Post by eil »

admin wrote:It's only needed in shaky networks anyway.
not really- i use Safe Overwrite 'cause it copies and then deletes, so if i suddenly understand i made a mistake, i have a chance to restore deleted file.(safety-rockfeature for me 8) )
Win 7 SP1 x64 100% 1366x768|1900x1080

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Safe Overwrite Stopping Copy Operations.

Post by PeterH »

neutrox wrote:I have being this problem when I want to copy large files.

Safe overwrite is not being done as the temp files cannot be created because the target drive *where the system's TEMP folder is set* has not enough space, stopping the whole operation.

The final destination (ie, the real folder where the large file will be copied to) has enough drive space, though.

A little smartness will be welcome, sure.
Reading the initial post again it says: The final destination (ie, the real folder where the large file will be copied to) has enough drive space, though.
And I think this is all that matters.

But it also says: Safe overwrite is not being done as the temp files cannot be created because the target drive *where the system's TEMP folder is set* has not enough space, stopping the whole operation.
I don't see that the drive with the temp folders is somehow related. As I understand, the files first will be copied to the final destination, but with temp names. Then the old files will be deleted and the new will be renamed. So enough additional space is only used on the final destination drive.
admin wrote:It cannot be solved (unless you want to get false "not enough space" messages): there is no way in advance to surely determine the needed space in an overwrite situation because it is not known how the user will react on an overwrite prompt.
I think this only affects the final (and only) destination - and as such seems to be OK.

So I still don't understand what the real problem is :?
A misunderstanding from neutrox? Or do I interpret his words wrong?

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Safe Overwrite Stopping Copy Operations.

Post by admin »

eil wrote:
admin wrote:It's only needed in shaky networks anyway.
not really- i use Safe Overwrite 'cause it copies and then deletes, so if i suddenly understand i made a mistake, i have a chance to restore deleted file.(safety-rockfeature for me 8) )
wow, so the shaky network is in your head ;)

neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Re: Safe Overwrite Stopping Copy Operations.

Post by neutrox »

PeterH:

The main issue is that when a huge file is found not fitting temp drive it totally stops all other subsequent operations, no matter how smaller they are. This is a showstopper in the strict sense of the word as sometimes I must backup to several places and such backups usually take time. When I come back I just see the dialog notifying the error so all the processes must be started again... to probably see the same situation again and again.

Sometimes I turn Safe Overwrite off but then what's the point of having it at all if the answer is to shut it off when I really have the need for it? :roll:

I can't say it for your system, but mine is clearly putting the safe overwrite's temp file on systemp, which is the cause of the problem as such drive is minimal containing only the system plus 2 GB of free space.

Perhaps an option to continue on errors, logging them but without totally shutting the safety net as the smaller files will need it?

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Safe Overwrite Stopping Copy Operations.

Post by admin »

neutrox wrote:I can't say it for your system, but mine is clearly putting the safe overwrite's temp file on systemp, which is the cause of the problem as such drive is minimal containing only the system plus 2 GB of free space.
On systemp?? Not in my code...

Post Reply