|
| 1 | +<!--- Docs generated by help.go - use go generate to rebuild - DO NOT EDIT ---> |
| 2 | + |
| 3 | +| Command | Description | |
| 4 | +|------|------| |
| 5 | +| `--name-transform prefix=XXXX` | Prepends XXXX to the file name. | |
| 6 | +| `--name-transform suffix=XXXX` | Appends XXXX to the file name after the extension. | |
| 7 | +| `--name-transform suffix_keep_extension=XXXX` | Appends XXXX to the file name while preserving the original file extension. | |
| 8 | +| `--name-transform trimprefix=XXXX` | Removes XXXX if it appears at the start of the file name. | |
| 9 | +| `--name-transform trimsuffix=XXXX` | Removes XXXX if it appears at the end of the file name. | |
| 10 | +| `--name-transform regex=/pattern/replacement/` | Applies a regex-based transformation. | |
| 11 | +| `--name-transform replace=old:new` | Replaces occurrences of old with new in the file name. | |
| 12 | +| `--name-transform date={YYYYMMDD}` | Appends or prefixes the specified date format. | |
| 13 | +| `--name-transform truncate=N` | Truncates the file name to a maximum of N characters. | |
| 14 | +| `--name-transform base64encode` | Encodes the file name in Base64. | |
| 15 | +| `--name-transform base64decode` | Decodes a Base64-encoded file name. | |
| 16 | +| `--name-transform encoder=ENCODING` | Converts the file name to the specified encoding (e.g., ISO-8859-1, Windows-1252, Macintosh). | |
| 17 | +| `--name-transform decoder=ENCODING` | Decodes the file name from the specified encoding. | |
| 18 | +| `--name-transform charmap=MAP` | Applies a character mapping transformation. | |
| 19 | +| `--name-transform lowercase` | Converts the file name to lowercase. | |
| 20 | +| `--name-transform uppercase` | Converts the file name to UPPERCASE. | |
| 21 | +| `--name-transform titlecase` | Converts the file name to Title Case. | |
| 22 | +| `--name-transform ascii` | Strips non-ASCII characters. | |
| 23 | +| `--name-transform url` | URL-encodes the file name. | |
| 24 | +| `--name-transform nfc` | Converts the file name to NFC Unicode normalization form. | |
| 25 | +| `--name-transform nfd` | Converts the file name to NFD Unicode normalization form. | |
| 26 | +| `--name-transform nfkc` | Converts the file name to NFKC Unicode normalization form. | |
| 27 | +| `--name-transform nfkd` | Converts the file name to NFKD Unicode normalization form. | |
| 28 | +| `--name-transform command=/path/to/my/programfile names.` | Executes an external program to transform | |
| 29 | + |
| 30 | + |
| 31 | +Conversion modes: |
| 32 | +``` |
| 33 | +none |
| 34 | +nfc |
| 35 | +nfd |
| 36 | +nfkc |
| 37 | +nfkd |
| 38 | +replace |
| 39 | +prefix |
| 40 | +suffix |
| 41 | +suffix_keep_extension |
| 42 | +trimprefix |
| 43 | +trimsuffix |
| 44 | +index |
| 45 | +date |
| 46 | +truncate |
| 47 | +base64encode |
| 48 | +base64decode |
| 49 | +encoder |
| 50 | +decoder |
| 51 | +ISO-8859-1 |
| 52 | +Windows-1252 |
| 53 | +Macintosh |
| 54 | +charmap |
| 55 | +lowercase |
| 56 | +uppercase |
| 57 | +titlecase |
| 58 | +ascii |
| 59 | +url |
| 60 | +regex |
| 61 | +command |
| 62 | +``` |
| 63 | +Char maps: |
| 64 | +``` |
| 65 | + |
| 66 | +IBM-Code-Page-037 |
| 67 | +IBM-Code-Page-437 |
| 68 | +IBM-Code-Page-850 |
| 69 | +IBM-Code-Page-852 |
| 70 | +IBM-Code-Page-855 |
| 71 | +Windows-Code-Page-858 |
| 72 | +IBM-Code-Page-860 |
| 73 | +IBM-Code-Page-862 |
| 74 | +IBM-Code-Page-863 |
| 75 | +IBM-Code-Page-865 |
| 76 | +IBM-Code-Page-866 |
| 77 | +IBM-Code-Page-1047 |
| 78 | +IBM-Code-Page-1140 |
| 79 | +ISO-8859-1 |
| 80 | +ISO-8859-2 |
| 81 | +ISO-8859-3 |
| 82 | +ISO-8859-4 |
| 83 | +ISO-8859-5 |
| 84 | +ISO-8859-6 |
| 85 | +ISO-8859-7 |
| 86 | +ISO-8859-8 |
| 87 | +ISO-8859-9 |
| 88 | +ISO-8859-10 |
| 89 | +ISO-8859-13 |
| 90 | +ISO-8859-14 |
| 91 | +ISO-8859-15 |
| 92 | +ISO-8859-16 |
| 93 | +KOI8-R |
| 94 | +KOI8-U |
| 95 | +Macintosh |
| 96 | +Macintosh-Cyrillic |
| 97 | +Windows-874 |
| 98 | +Windows-1250 |
| 99 | +Windows-1251 |
| 100 | +Windows-1252 |
| 101 | +Windows-1253 |
| 102 | +Windows-1254 |
| 103 | +Windows-1255 |
| 104 | +Windows-1256 |
| 105 | +Windows-1257 |
| 106 | +Windows-1258 |
| 107 | +X-User-Defined |
| 108 | +``` |
| 109 | +Encoding masks: |
| 110 | +``` |
| 111 | +Asterisk |
| 112 | + BackQuote |
| 113 | + BackSlash |
| 114 | + Colon |
| 115 | + CrLf |
| 116 | + Ctl |
| 117 | + Del |
| 118 | + Dollar |
| 119 | + Dot |
| 120 | + DoubleQuote |
| 121 | + Exclamation |
| 122 | + Hash |
| 123 | + InvalidUtf8 |
| 124 | + LeftCrLfHtVt |
| 125 | + LeftPeriod |
| 126 | + LeftSpace |
| 127 | + LeftTilde |
| 128 | + LtGt |
| 129 | + None |
| 130 | + Percent |
| 131 | + Pipe |
| 132 | + Question |
| 133 | + Raw |
| 134 | + RightCrLfHtVt |
| 135 | + RightPeriod |
| 136 | + RightSpace |
| 137 | + Semicolon |
| 138 | + SingleQuote |
| 139 | + Slash |
| 140 | + SquareBracket |
| 141 | +``` |
| 142 | +Examples: |
| 143 | + |
| 144 | +``` |
| 145 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,uppercase" |
| 146 | +// Output: STORIES/THE QUICK BROWN FOX!.TXT |
| 147 | +``` |
| 148 | + |
| 149 | +``` |
| 150 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,replace=Fox:Turtle" --name-transform "all,replace=Quick:Slow" |
| 151 | +// Output: stories/The Slow Brown Turtle!.txt |
| 152 | +``` |
| 153 | + |
| 154 | +``` |
| 155 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,base64encode" |
| 156 | +// Output: c3Rvcmllcw==/VGhlIFF1aWNrIEJyb3duIEZveCEudHh0 |
| 157 | +``` |
| 158 | + |
| 159 | +``` |
| 160 | +rclone convmv "c3Rvcmllcw==/VGhlIFF1aWNrIEJyb3duIEZveCEudHh0" --name-transform "all,base64decode" |
| 161 | +// Output: stories/The Quick Brown Fox!.txt |
| 162 | +``` |
| 163 | + |
| 164 | +``` |
| 165 | +rclone convmv "stories/The Quick Brown 🦊 Fox Went to the Café!.txt" --name-transform "all,nfc" |
| 166 | +// Output: stories/The Quick Brown 🦊 Fox Went to the Café!.txt |
| 167 | +``` |
| 168 | + |
| 169 | +``` |
| 170 | +rclone convmv "stories/The Quick Brown 🦊 Fox Went to the Café!.txt" --name-transform "all,nfd" |
| 171 | +// Output: stories/The Quick Brown 🦊 Fox Went to the Café!.txt |
| 172 | +``` |
| 173 | + |
| 174 | +``` |
| 175 | +rclone convmv "stories/The Quick Brown 🦊 Fox!.txt" --name-transform "all,ascii" |
| 176 | +// Output: stories/The Quick Brown Fox!.txt |
| 177 | +``` |
| 178 | + |
| 179 | +``` |
| 180 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,trimsuffix=.txt" |
| 181 | +// Output: stories/The Quick Brown Fox! |
| 182 | +``` |
| 183 | + |
| 184 | +``` |
| 185 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,prefix=OLD_" |
| 186 | +// Output: OLD_stories/OLD_The Quick Brown Fox!.txt |
| 187 | +``` |
| 188 | + |
| 189 | +``` |
| 190 | +rclone convmv "stories/The Quick Brown 🦊 Fox Went to the Café!.txt" --name-transform "all,charmap=ISO-8859-7" |
| 191 | +// Output: stories/The Quick Brown _ Fox Went to the Caf_!.txt |
| 192 | +``` |
| 193 | + |
| 194 | +``` |
| 195 | +rclone convmv "stories/The Quick Brown Fox: A Memoir [draft].txt" --name-transform "all,encoder=Colon,SquareBracket" |
| 196 | +// Output: stories/The Quick Brown Fox: A Memoir [draft].txt |
| 197 | +``` |
| 198 | + |
| 199 | +``` |
| 200 | +rclone convmv "stories/The Quick Brown 🦊 Fox Went to the Café!.txt" --name-transform "all,truncate=21" |
| 201 | +// Output: stories/The Quick Brown 🦊 Fox |
| 202 | +``` |
| 203 | + |
| 204 | +``` |
| 205 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,command=echo" |
| 206 | +// Output: stories/The Quick Brown Fox!.txt |
| 207 | +``` |
| 208 | + |
| 209 | +``` |
| 210 | +rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{YYYYMMDD}" |
| 211 | +// Output: stories/The Quick Brown Fox!-20250618 |
| 212 | +``` |
| 213 | + |
| 214 | +``` |
| 215 | +rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{macfriendlytime}" |
| 216 | +// Output: stories/The Quick Brown Fox!-2025-06-18 0148PM |
| 217 | +``` |
| 218 | + |
| 219 | +``` |
| 220 | +rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,regex=[\\.\\w]/ab" |
| 221 | +// Output: ababababababab/ababab ababababab ababababab ababab!abababab |
| 222 | +``` |
| 223 | + |
| 224 | + |
0 commit comments