Fix correct path for filmstrips when you use an alias (#3225)
This commit is contained in:
parent
b33ba0dc04
commit
31df2d327b
|
|
@ -46,8 +46,8 @@ module.exports = function storageManager(baseDir, storagePathPrefix, options) {
|
|||
getBaseDir() {
|
||||
return baseDir;
|
||||
},
|
||||
getFullPathToURLDir(url) {
|
||||
return path.join(baseDir, pathToFolder(url, options));
|
||||
getFullPathToURLDir(url, alias) {
|
||||
return path.join(baseDir, pathToFolder(url, options, alias));
|
||||
},
|
||||
getStoragePrefix() {
|
||||
return storagePathPrefix;
|
||||
|
|
@ -55,6 +55,7 @@ module.exports = function storageManager(baseDir, storagePathPrefix, options) {
|
|||
copyToResultDir(filename) {
|
||||
return this.createDirectory().then(dir => fs.copy(filename, dir));
|
||||
},
|
||||
// TODO is missing alias
|
||||
removeDataForUrl(url) {
|
||||
const dirName = path.join(baseDir, pathToFolder(url, options));
|
||||
const removeDir = async dir => {
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ class HTMLBuilder {
|
|||
? await filmstrip.getFilmstrip(
|
||||
medianPageInfo.data.browsertime.run,
|
||||
medianRun.runIndex,
|
||||
this.storageManager.getFullPathToURLDir(url),
|
||||
this.storageManager.getFullPathToURLDir(url, daurlAlias),
|
||||
options
|
||||
)
|
||||
: [];
|
||||
|
|
@ -304,7 +304,7 @@ class HTMLBuilder {
|
|||
? await filmstrip.getFilmstrip(
|
||||
pageInfo.data.browsertime.run,
|
||||
iteration,
|
||||
this.storageManager.getFullPathToURLDir(url),
|
||||
this.storageManager.getFullPathToURLDir(url, daurlAlias),
|
||||
options
|
||||
)
|
||||
: [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue