chore(tauri.js) path as empty string instead of .

This commit is contained in:
Lucas Nogueira
2020-09-23 23:49:24 -03:00
parent 5cf3402735
commit b7077bf4ba

View File

@@ -9,7 +9,7 @@ import { BaseDirectory } from './fs'
async function appDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.App
})
}
@@ -22,7 +22,7 @@ async function appDir(): Promise<string> {
async function audioDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Audio
})
}
@@ -35,7 +35,7 @@ async function audioDir(): Promise<string> {
async function cacheDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Cache
})
}
@@ -48,7 +48,7 @@ async function cacheDir(): Promise<string> {
async function configDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Config
})
}
@@ -61,7 +61,7 @@ async function configDir(): Promise<string> {
async function dataDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Data
})
}
@@ -74,7 +74,7 @@ async function dataDir(): Promise<string> {
async function desktopDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Desktop
})
}
@@ -87,7 +87,7 @@ async function desktopDir(): Promise<string> {
async function documentDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Document
})
}
@@ -100,7 +100,7 @@ async function documentDir(): Promise<string> {
async function downloadDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Download
})
}
@@ -113,7 +113,7 @@ async function downloadDir(): Promise<string> {
async function executableDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Executable
})
}
@@ -126,7 +126,7 @@ async function executableDir(): Promise<string> {
async function fontDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Font
})
}
@@ -139,7 +139,7 @@ async function fontDir(): Promise<string> {
async function homeDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Home
})
}
@@ -152,7 +152,7 @@ async function homeDir(): Promise<string> {
async function localDataDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.LocalData
})
}
@@ -165,7 +165,7 @@ async function localDataDir(): Promise<string> {
async function pictureDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Picture
})
}
@@ -178,7 +178,7 @@ async function pictureDir(): Promise<string> {
async function publicDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Public
})
}
@@ -191,7 +191,7 @@ async function publicDir(): Promise<string> {
async function resourceDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Resource
})
}
@@ -204,7 +204,7 @@ async function resourceDir(): Promise<string> {
async function runtimeDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Runtime
})
}
@@ -217,7 +217,7 @@ async function runtimeDir(): Promise<string> {
async function templateDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Template
})
}
@@ -230,7 +230,7 @@ async function templateDir(): Promise<string> {
async function videoDir(): Promise<string> {
return await promisified<string>({
cmd: 'resolvePath',
path: '.',
path: '',
directory: BaseDirectory.Video
})
}