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

Scripting: Added FileInfo API #2822

Merged
merged 3 commits into from
Jun 10, 2020
Merged

Scripting: Added FileInfo API #2822

merged 3 commits into from
Jun 10, 2020

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Jun 9, 2020

Based on the Qbs FileInfo service.

I've taken the code from https://github.com/4QJS/Qbs4QJS/blob/master/fileinfo.h and adjusted it a little:

  • Removed fromWindowsSeparators and toWindowsSeparators (which were just calling the same function as the "Native" versions of these).

  • Returned absoluteFilePath for the absolutePath function, to make sure the file name is still included.

  • Dropped intention to support "hostOS" parameter, which only really makes sense in Qbs as build system.

  • Code style changes.

  • Documentation reformatted and adjusted.

Co-authored-by: @konsumer

bjorn and others added 3 commits June 9, 2020 23:17
Based on the Qbs FileInfo service.

Co-authored-by: David Konsumer <konsumer@jetboystudio.com>
This really seems a little much, but to get a single '\' in the output I
needed to put '\\\\' in the rst file. :S
@bjorn bjorn merged commit 683c08b into master Jun 10, 2020
@bjorn bjorn deleted the script-fileinfo branch June 10, 2020 07:25
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 this pull request may close these issues.

1 participant