Skip to content

Commit

Permalink
arch: Update doc discouraging use of ArchGetFileName.
Browse files Browse the repository at this point in the history
Fixes #1704

(Internal change: 2250775)
  • Loading branch information
gitamohr authored and pixar-oss committed Oct 21, 2022
1 parent 08a6d27 commit 259c6f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pxr/base/arch/fileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ ArchOpenFile(char const* fileName, char const* mode);
ARCH_API int64_t ArchGetFileLength(const char* fileName);
ARCH_API int64_t ArchGetFileLength(FILE *file);

/// Return a filename for this file, if one can be obtained.
/// Return a filename for this file, if one can be obtained. Note that there
/// are many reasons why it may be impossible to obtain a filename, even for an
/// opened FILE *. Whenever possible avoid using this function and instead
/// store the filename for future use.
ARCH_API std::string ArchGetFileName(FILE *file);

/// Returns true if the data in \c stat struct \p st indicates that the target
Expand Down

0 comments on commit 259c6f7

Please sign in to comment.