Disable space check on custom copy for move operations in the same drive.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
IppoKun
Posts: 3
Joined: 13 Sep 2021 11:52

Disable space check on custom copy for move operations in the same drive.

Post by IppoKun »

I'm using the Custom Copy Operations to move data inside a Google Drive mount (by Google Drive app on Windows). Since this drive has unlimited space I'm having troubles by the "space check" xyplorer does. Some point of whats happening:

- The space reported on this mount is the space of my drive cache (local drive) and not the mount itself (the mount space is actually unlimited).
- Everything I'm moving is inside the mount, so the cache drive isn't used (this is only used when downloading/uploading files to Google Drive)
- Unfortunately my cache drive has very small space (SSD) and xyplorer will always check the space available on the "mount" and doesn't allow me to move if the amount I'm trying to move is bigger than my cache drive.

Is there any way I can disable this check or avoid this? I have to use Custom Copy, without it I have some rare problems when doing the same moves (downloads the files to upload to the new destination, instead of moving directly)

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

Re: Disable space check on custom copy for move operations in the same drive.

Post by admin »

Please insert your Google Drive target path (the target path of your move operation) in the place of "C:\YourTargetPath\" below, then run this script line through the address bar:

Code: Select all

exist "C:\YourTargetPath\";
What is returned? The interesting question is: Is this path recognized as a Mount Point?

IppoKun
Posts: 3
Joined: 13 Sep 2021 11:52

Re: Disable space check on custom copy for move operations in the same drive.

Post by IppoKun »

admin wrote: 13 Sep 2021 13:55 Please insert your Google Drive target path (the target path of your move operation) in the place of "C:\YourTargetPath\" below, then run this script line through the address bar:

Code: Select all

exist "C:\YourTargetPath\";
What is returned? The interesting question is: Is this path recognized as a Mount Point?
It seems it's not recognized as a NetworkLocation (I believe Google Drive app "mounts" this like a local drive):

Code: Select all

Path: G:\My Drive
Real Path: G:\My Drive
ExistFile: False
ExistPath: True
ExistFolder: True
ExistItemFF: True
ExistPathFF: True
ExistPathOrFile: True
ExistPathOrFileShell: True
ExistIcon: True
IsNetworkLocation: False
GetDriveType: 3 (DRIVE_FIXED)
GetItemType: 2
GetFileAttributes: 0x10 (16)
This path available in Tree: True
Current node available in Tree: True
Watchable: True
FilenamesCaseSensitive: False

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

Re: Disable space check on custom copy for move operations in the same drive.

Post by admin »

Thanks. In the meantime I found a better solution. In the next beta it should just work. Free space check is completely skipped now for move operations in the same drive. :)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Disable space check on custom copy for move operations in the same drive.

Post by highend »

What about copies (on the same drive)?

For mounted cloud volumes (e.g. through rclone) the size of such a reported volume isn't "unlimited" as well.

Maybe something like this tweak: ShowFolderSizesExclude=

where you could state the volumes where size is disregarded by XY...
One of my scripts helped you out? Please donate via Paypal

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

Re: Disable space check on custom copy for move operations in the same drive.

Post by admin »

There is no way in XY now to recognize those mounted cloud volumes?

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

Re: Disable space check on custom copy for move operations in the same drive.

Post by admin »

I just made it a simple checkbox option.

IppoKun
Posts: 3
Joined: 13 Sep 2021 11:52

Re: Disable space check on custom copy for move operations in the same drive.

Post by IppoKun »

Tried out the new BETA and disabling the checkbox is working as intended! :appl:

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Disable space check on custom copy for move operations in the same drive.

Post by 1024mb »

admin wrote: 13 Sep 2021 19:48 I just made it a simple checkbox option.
Can you add another one or change the one already present to only apply to move operations within the same drive? There have been times where I wanted to move a big file from a directory to another and because the drive had less than the filesize of free space it warned me.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Disable space check on custom copy for move operations in the same drive.

Post by jupe »

@1024mb: try reading the changelog, especially this part:
- Intra-volume moves do not check space anyway since this version so here
the setting is irrelevant.

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Disable space check on custom copy for move operations in the same drive.

Post by 1024mb »

jupe wrote: 14 Sep 2021 09:11 @1024mb: try reading the changelog, especially this part:
- Intra-volume moves do not check space anyway since this version so here
the setting is irrelevant.
Ha! Thanks!

Post Reply