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 FileUtils on macOS #1863

Merged
merged 5 commits into from
Apr 30, 2024
Merged

Fix FileUtils on macOS #1863

merged 5 commits into from
Apr 30, 2024

Conversation

smilediver
Copy link
Contributor

@smilediver smilediver commented Apr 29, 2024

This PR fixes the following issues that unit-tests have exposed on macOS.

  • Fix FileUtils::getFileSize() returning 0 instead of -1 when file is not found
  • Fix FileUtils::fullPathForDirectory() not returning path with a trailing slash
  • Fix FileUtils::getDefaultResourceRootPath() returning empty string on macOS
  • Fix FileUtils::isFileExist() returning true for directories on macOS

@smilediver smilediver changed the title Fix FileUtils::getFileSize() and FileUtils::fullPathForDirectory() Fix FileUtils::getFileSize() and FileUtils::fullPathForDirectory() Apr 29, 2024
core/platform/FileUtils.cpp Outdated Show resolved Hide resolved
@smilediver smilediver changed the title Fix FileUtils::getFileSize() and FileUtils::fullPathForDirectory() Fix FileUtils on macOS Apr 29, 2024
@smilediver
Copy link
Contributor Author

Added two more fixes:

  • Fix FileUtils::getDefaultResourceRootPath() returning empty string on macOS
  • Fix FileUtils::isFileExist() returning true for directories on macOS

@halx99 halx99 added this to the 2.1.3 milestone Apr 30, 2024
@smilediver smilediver mentioned this pull request Apr 30, 2024
@halx99 halx99 merged commit d845e54 into axmolengine:dev Apr 30, 2024
14 of 15 checks passed
@smilediver smilediver deleted the fix_fileutils branch April 30, 2024 17:03
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.

3 participants