mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
10 lines
219 B
JavaScript
10 lines
219 B
JavaScript
import Path from 'path';
|
|
|
|
export function pathBuilder(path, filename, type = 'file'){
|
|
let tmp = Path.resolve(path, filename)
|
|
if(type === 'file'){
|
|
return tmp;
|
|
}else{
|
|
return tmp + '/';
|
|
}
|
|
}
|