Skip to content

Commit

Permalink
#407: Fix folder was created instead of video file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikitae57 committed Nov 3, 2022
1 parent fa3131b commit 7b99c0c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class DefaultResourceFilesProvider(
tag,
FileExtension.MP4.toString()
)
return resourcesDirsProvider.provide(
resourcesRootDirsProvider.videoRootDir,
subDir
).resolve(resFileName).createDirIfNeeded().createFileIfNeeded()
val resourceDir = resourcesDirsProvider.provide(resourcesRootDirsProvider.videoRootDir, subDir)
return resourceDir.createDirIfNeeded()
.resolve(resFileName)
.createFileIfNeeded()
}

override fun provideViewHierarchyFile(tag: String, subDir: String?): File {
Expand Down

0 comments on commit 7b99c0c

Please sign in to comment.