How to sort files & folders via "serve http"

What is the problem you are having with rclone?

I want to sort files & folder that server from "rclone serve http"

What is your rclone version (output from rclone version)

rclone v1.55.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

win7

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

blomp (swift)

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

rclone serve http "F:\Toomics" --addr :8080

The result is unsorted how i sort this by filename
IDM

The rclone config contents with secrets removed.

[blomp]
type = swift
env_auth = false
user =  [REDACTED]
key = [REDACTED]
auth = https://authenticate.blomp.com

A log from the command with the -vv flag

Paste  log here
1 Like

Are you trying to sort it differently as that output is already sorted?

1 Like

Clicking the header of each row will let you sort by that row. Clicking the headers multiple times will reverse the order ascending/descending.

To sort alphabetical, just click the 'Name' header which will sort them. If you click the up/down arrows to the left of the name, it will sort by type (files vs directories) and then by alphanumeric.

It sorts from left to right so if you need something different, you'll need to pass in your own template which you can clone from the default and use this command.

rclone serve http /some/directory --template sometemplate

However, since the sorting is done in the go code, you'll probably need to do it with javascript or something in the html.
the default us here:

1 Like

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