Skip to content

Commit

Permalink
Add slash to persistencyFolder if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhland authored and hefroy committed Aug 15, 2023
1 parent 1bd0a99 commit ba16587
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ using namespace Aws::IoTFleetWise::Platform::Linux::PersistencyManagement;

CacheAndPersist::CacheAndPersist( const std::string &partitionPath, size_t maxPartitionSize )
: mPersistencyPath{ partitionPath }
, mPersistencyWorkspace{ partitionPath + PERSISTENCY_WORKSPACE }
, mPersistencyWorkspace{ partitionPath +
( ( ( partitionPath.empty() ) || ( partitionPath.back() == '/' ) ) ? "" : "/" ) +
PERSISTENCY_WORKSPACE }
, mDecoderManifestFile{ mPersistencyWorkspace + DECODER_MANIFEST_FILE }
, mCollectionSchemeListFile{ mPersistencyWorkspace + COLLECTION_SCHEME_LIST_FILE }
, mPayloadMetadataFile{ mPersistencyWorkspace + PAYLOAD_METADATA_FILE }
Expand Down

0 comments on commit ba16587

Please sign in to comment.