mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 02:43:35 +08:00
11 lines
219 B
JavaScript
11 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 + '/';
|
|
}
|
|
}
|