mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +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:
|
||||
|
||||
```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,\
|
||||
"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