# Can't save plugin asset from commandlet

**URL:** <https://forums.unrealengine.com/t/cant-save-plugin-asset-from-commandlet/418759>\
**Category:** C++\
**Tags:** commandlet, unreal-engine, question, CPP\
**Created:** [March 2, 2018, 11:27am UTC](https://forums.unrealengine.com/t/cant-save-plugin-asset-from-commandlet/418759 "2018-03-02T11:27:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lostwoods91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lostwoods91](https://forums.unrealengine.com/u/lostwoods91)\
**Post date:** [March 2, 2018, 11:27am UTC](https://forums.unrealengine.com/t/cant-save-plugin-asset-from-commandlet/418759/1 "2018-03-02T11:27:04Z")

</div>

hi! i’m trying to save a plugin asset (saved into its content folder) using UEditorEngine::SavePackage from a commandlet, but i think there is a bug into UEditorEngine::IsPackageOKToSave.

the asset into the plugin content folder is relativized by IFileManager::ConvertToRelativePath to: …/…/Plugins/…

but in FLongPackagePathsSingleton.ContentPathToRoot that plugin appears relativized as: …/…/…/Engine/Plugins/…

that is the same relative path, but UEditorEngine::IsPackageOKToSave at line 308 (if (Result.StartsWith(Pair.ContentPath))) tries unsuccessfully to compare the two paths.

so UEditorEngine::IsPackageOKToSave fails at line 4064 trying to do FPackageName::TryConvertFilenameToLongPackageName.

can you please verify this issue?  
thanks!

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [March 6, 2018, 5:17pm UTC](https://forums.unrealengine.com/t/cant-save-plugin-asset-from-commandlet/418759/2 "2018-03-06T17:17:03Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form](https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form)

Thanks
