mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
maintenance (structure): Full revamp of the project code structure
This commit is contained in:
10
client/helpers/path.js
Normal file
10
client/helpers/path.js
Normal file
@ -0,0 +1,10 @@
|
||||
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 + '/';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user