mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-17 22:56:18 +00:00
make liberal use of LF escapes
+5
-2
@@ -5,7 +5,10 @@ There are the `if` and `branch` commands to implement conditional execution of o
|
|||||||
The following example shows a method definition, using `if` with `(…)` syntax for its arguments:
|
The following example shows a method definition, using `if` with `(…)` syntax for its arguments:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
# COMMAND: Return path to item data (never empty, unlike `d.base_path`)
|
# COMMAND: Return path to item data (never empty, unlike `d.base_path`);
|
||||||
|
# multi-file items return a path ending with a '/'.
|
||||||
method.insert = d.data_path, simple,\
|
method.insert = d.data_path, simple,\
|
||||||
"if=(d.is_multi_file), (cat, (d.directory)), (cat, (d.directory), /, (d.name))"
|
"if=(d.is_multi_file),\
|
||||||
|
(cat, (d.directory), /),\
|
||||||
|
(cat, (d.directory), /, (d.name))"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user