fix: nested directory upload preserves the directory structure (#365)
This commit is contained in:
+2
-2
@@ -87,8 +87,8 @@ export function getPath(file: FilePath): string {
|
||||
/**
|
||||
* Utility function that is needed to have correct directory structure as webkitRelativePath is read only
|
||||
*/
|
||||
export function packageFile(file: FilePath): FilePath {
|
||||
const path = getPath(file)
|
||||
export function packageFile(file: FilePath, pathOverwrite?: string): FilePath {
|
||||
const path = pathOverwrite || getPath(file)
|
||||
|
||||
return {
|
||||
path: path,
|
||||
|
||||
Reference in New Issue
Block a user