question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{path.parent}/{path.stem}

See original GitHub issue

As part of my old config I had:

- shell: |
          magick "{path}" -resize '1440x1440>' "{path.parent}/{path.stem}_r.{}"

I suspect this syntax has changed in the last big revamping of this tool. On which page could I find the current syntax? Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iburunatcommented, Feb 9, 2022

Yes, thank you. Apparently the {} never gave errors in the previous versions! Now working, thanks again.

0reactions
tfeldmanncommented, Feb 9, 2022

The path stuff should work just fine. I guess you need {path.stem}_r{path.suffix}?

Read more comments on GitHub >

github_iconTop Results From Across the Web

std::filesystem::path::stem - cppreference.com
Returns the substring from the beginning of filename() up to and not including the last period ( . ) character, with the following...
Read more >
pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure ...
Read more >
Parent-Path Light Stems-HL0006-T-Hinkley – Chloe Winston Lighting
Parent-Path Light Stems-HL0006-T-Hinkley. Filter. Showing: 1-1 of 1 Results ... Path Light Stems Landscape - Power Supplies and Accessories in Black Finish.
Read more >
how to use C++ to get the folder/directory name, but not the ...
You can use parent_path to get rid of the last element in the path, then filename to get the last element.
Read more >
std::filesystem::path::parent_path (3) - Linux Man Pages
path parent_path () const; (since C++17). Returns the path to the parent directory. If has_relative_path() returns false, the result is a copy of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found