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

Fix for writing mda files to subdirectories on Linux #33

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Conversation

kmpeters
Copy link
Member

Use a local copy of the filename so trailing slashes can be excluded from the stat call while the filename remains unchanged.

Fixes #32

from the stat call while the filename remains unchanged.
@kmpeters
Copy link
Member Author

This PR has been tested on RHEL9 and Windows 11 with base-7.0.8. saveData was able to write data to the correct subdirectories, as well as to the file system path when the subdirectory was blank.

@timmmooney
Copy link
Contributor

I'm ok with this fix.

@@ -719,23 +719,32 @@ LOCAL int fileStatus(char* fname)
{
struct stat status;
int retVal;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the trailing whitespace

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whitespace makes the indentation consistent across the entire function (see attached screenshot).

Screenshot from 2024-07-24 15-02-09

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@kmpeters kmpeters merged commit 9b9870f into master Jul 31, 2024
4 of 5 checks passed
@kmpeters kmpeters deleted the issue32 branch July 31, 2024 14:24
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.

Saving mda files to subdirectories on Linux is broken
4 participants