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

Improve ArchGetFileName for windows to return full path #3361

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

roggiezhang-nv
Copy link

Description of Change(s)

In a fix to improve Alembic plugin to read assets with ArResolver to support other sources except local files (#3302), it provides 4 options and 3 of them are using istream interfaces which has flaws to support layered ABC files. The only solution needs to fix ArchGetFileName to return full path from FILE*.

Fixes Issue(s)

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@roggiezhang-nv roggiezhang-nv changed the base branch from release to dev October 11, 2024 05:10
@roggiezhang-nv
Copy link
Author

@nvmkuruc @nvidia-jomiller for vis.

// Open a file, check that the file path from FILE* handle is matched.
ARCH_AXIOM((firstFile = ArchOpenFile(firstName.c_str(), "rb")) != NULL);
std::string filePath = ArchGetFileName(firstFile);
ARCH_AXIOM(_DosDevicePathFilter(filePath) == _DosDevicePathFilter(firstName));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would comparing ArchAbsPath be sufficient instead of _DosDevicePathFilter?

Copy link
Author

Choose a reason for hiding this comment

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

It doesn't work to me.

@jesschimein
Copy link

Filed as internal issue #USD-10302

@jesschimein
Copy link

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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