Task: Fix potential issues with fs file restoration

refs #92
5 jobs for master in 27 minutes and 41 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #278900
amd64 debian
coverage

00:09:38

59.2%
 
  Test
passed #278904
amd64 debian
asan-ubsan

00:12:21

passed #278901
amd64 debian
linux

00:05:41

failed #278902
win32
win32

00:10:47

passed #278903
win64
win64

00:10:42

 
Name Stage Failure
failed
win32 Test

[----------] Global test environment tear-down
[==========] 60 tests from 2 test cases ran. (263967 ms total)
[ PASSED ] 59 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] SamplesTests/Tests.Parse/17, where GetParam() = "playlist_same_folder"

1 FAILED TEST
ERROR: Job failed: exit code 1