Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to get full path of File object #8433

Closed
alex-tee opened this issue Feb 27, 2021 · 3 comments
Closed

Ability to get full path of File object #8433

alex-tee opened this issue Feb 27, 2021 · 3 comments

Comments

@alex-tee
Copy link
Contributor

when you have this

my_files = files(['myfile1.scm', 'myfile2.scm'])

you should be able to do this

foreach f : my_files
  message (f.full_path())
endforeach

so you can reuse those paths elsewhere

@viric
Copy link

viric commented Feb 28, 2021

full path or even the path relative to the src root. The object could have multiple methods.

@tristan957
Copy link
Contributor

tristan957 commented Mar 8, 2021

I started work on a PR to implement this fyi :). If there are other methods you would find useful, please comment in the PR, so we can get some discussion going.

@bruchar1
Copy link
Member

Fixed in #12408.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants