What is the problem you are having with rclone?
Listing commands are ambiguous, it is not always possible to know if you are listing the item or its content. When a file and a folder with the same name (eponym) coexists, it becomes impossible to differentiate if the eponym file is aside or within the folder unless one recursively list the parent folder (which can be very costly). Worse, the content of the directory cannot be listed at all, unless one recursively list the parent folder.
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.1
- os/version: darwin 14.6.1 (64 bit)
- os/kernel: 23.6.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.23.1
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Azure (also tested with S3)
But the same problem should exist in any filesystem where folder do not really exists (e.g. only path exists, so an empty folder simply does not exist).
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
The context is key here, otherwise commands are meaningless: in one cloud system, let us create this arborescence:
.
└── test/
├── README.md
└── README.md/
└── README.md
└── some_other_file.txt
For clarity let's call the first README.md the 'aside' README and the one inside the folder the 'inside' README.
NB this hierarchy cannot be created with rclone itself, but will be easily created with native tools.
rclone ls azure:rnd/test/README.md/
The rclone config contents with secrets removed.
[azure]
type = azureblob
account = XXX
key = XXXXXXXXX
A log from the command with the -vv
flag
The output is identical whatever the content of README.md folder, or if either README.md file is deleted (and there are no other files in the README.md folder).
Displaying a full (absolute) path with an option would solve the issue, yet --absolute
just add a leading slash (which is clearly stated in the doc) whatever the case and is useless in this context (is it ever useful?).
2024/10/16 14:30:46 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "ls" "-vv" "azure:rnd/test/README.md/"]
2024/10/16 14:30:46 DEBUG : Creating backend with remote "azure:rnd/test/README.md/"
2024/10/16 14:30:46 DEBUG : Using config file from "/Users/delahondes/.config/rclone/rclone.conf"
2024/10/16 14:30:46 DEBUG : fs cache: adding new entry for parent of "azure:rnd/test/README.md/", "azure:rnd/test"
2024/10/16 14:30:46 DEBUG : README.md: Excluded
18503 README.md
2024/10/16 14:30:46 DEBUG : 7 go routines active