Can't modify file attributes on a mounted remote?

What is the problem you are having with rclone?

I've created a remote to a Dropbox shared folder and I've successfully mounted that remote as a network location, X:. I'm trying to write a PowerShell script to modify the "Archive" attribute of certain files on X:, but the modifications don't stick; I set them and they've reset to their prior state when I check them.

I also can't set any attributes manually via the Windows Properties right-click menu. Same deal. I set them, but they don't get set.


I need this functionality bc the Dropbox shared folder linked to this remote contains very large project files uploaded by my clients. These files will automatically be downloaded (via a Robocopy script) from the cloud to an SSD I use as a scratch space for active projects. I need to flip the "Archive" bit on files that have been successfully copied so that when they get deleted from the SSD by me, they won't be re-downloaded automatically by the next Robocopy session.

Run the command 'rclone version' and share the full output of the command.

rclone v1.58.1

  • os/version: Microsoft Windows 11 Pro 21H2 (64 bit)
  • os/kernel: 10.0.22000.675 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: dynamic
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Dropbox (API)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

In Powershell:

Get-childItem "X:\" -recurse | foreach {$_.Attributes = 'Archive'}

Returns:

Name                                    Attributes
----                                    ----------
Don't Worry2.mp3                            Normal
Overcast.mp3     Normal
Premiere - Accelerated Scrolling.ahk        Normal
Premiere - R Click Timeline MOD.ahk         Normal
Tarans Premiere Hot text bugfix.ahk         Normal

The rclone config contents with secrets removed.

Current remotes:

Name                 Type
====                 ====
Dropbox              dropbox

You can't.

Cloud remotes have no concept of that so it won't ever stick.

Oh. Crap.

I need this functionality bc the Dropbox shared folder linked to this remote contains very large project files uploaded by my clients. These files will automatically be downloaded (via a Robocopy script) from the cloud to an SSD I use as a scratch space for active projects. I need to flip the "Archive" bit on files that have been successfully copied so that when they get deleted from the SSD by me, they won't be re-downloaded automatically by the next Robocopy session.

I'm not sure how else to address this issue...

that is not possible using rclone.
the filesystem created by rclone mount is a subset of a typical local filesystem.
depending on the cloud provider, rclone will save modtime and hash checksum.

the least common denominator situation.

a real filesystem would be NTFS
image

the virtual filesystem using rclone mount is a FUSE filesystem
image

Ah, I see. Well, I guess I'm stuck then. Thanks for the info!

might want to read about filters.

--- create a set of files that need to be copied into files.txt
--- feed that set of files to rclone using filters.
rclone copy /source dest: --file=from=files.txt

Thanks for the suggestion!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.