Skip to content

Commit

Permalink
attempt to just use platform file
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Apr 28, 2021
1 parent 19366c9 commit d05702e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FileSDK.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 13,
"VersionName": "1.13",
"Version": 14,
"VersionName": "1.14",
"FriendlyName": "Blueprint File SDK",
"Description": "A simple plugin to interact with files and folders within blueprints.",
"Category": "Code Plugins",
Expand Down
5 changes: 2 additions & 3 deletions Source/FileSDK/Private/FileSDKBPLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ bool UFileSDKBPLibrary::CopyFile(

#if PLATFORM_MAC || PLATFORM_IOS
struct stat FileInfo;
auto applePlatformFile = static_cast<FApplePlatformFile>(PlatformFile);
if (applePlatformFile.Stat(*Source, &FileInfo) == 0) {
if (PlatformFile.Stat(*Source, &FileInfo) == 0) {
FileInfo.st_mode |= S_IWUSR;
chmod(TCHAR_TO_UTF8(*applePlatformFile.NormalizeFilename(*Destination)), FileInfo.st_mode);
chmod(TCHAR_TO_UTF8(*PlatformFile.NormalizeFilename(*Destination)), FileInfo.st_mode);
}
#endif

Expand Down

0 comments on commit d05702e

Please sign in to comment.