You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Track filesystem path format relative to ``album_path``.
29
+
30
+
.. note::
31
+
- The ``if`` statement inside the path simply means that if there is more than one disc in the album, the tracks will be put into separate directories for their respective disc.
32
+
- Include ``track.path.suffix`` at the end if you wish to retain the file extension of the track file.
33
+
34
+
``extra_path = "{extra.filename}"``
35
+
Extra filesystem path format relative to ``album_path``.
36
+
37
+
Paths are formatted using python `f-strings <https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals>`_ which, as demonstrated by the default track path, allow all the advanced formatting and expression evaluation that come with them. You can access any of the :ref:`respective item's fields <Fields>` in these strings using ``{[album/track/extra].field}`` notation as shown.
38
+
39
+
.. important::
40
+
Windows users should use a forward slash ``/`` when delineating sub-directories in path formats as the back slash ``\`` is used as an escape character.
41
+
42
+
.. tip::
43
+
- For any path formatting changes, run ``moe move -n`` for a dry-run to avoid any unexpected results.
44
+
- For a more detailed look at all the field options and types, you take a look at the :ref:`library api <Library API>`. ``album``, ``track``, and ``extra`` in the path formats are ``Album``, ``Track``, and ``Extra`` objects respectively and thus you can reference any of their available attributes.
45
+
29
46
***********
30
47
Commandline
31
48
***********
32
-
The ``move`` command will move all items in the library according to your configuration file. This is useful if you make changes to the configuration file, and you'd like to move the items in your library to reflect the new changes.
49
+
The ``move`` command will move all items in the library according to your configuration file. This can be used to update the items in your library to reflect changes in your configuration.
0 commit comments