Commit ac332a2e authored by ioedeveloper's avatar ioedeveloper Committed by GitHub

Remove console logs

parent 5b2d3c51
...@@ -312,8 +312,6 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -312,8 +312,6 @@ export const FileExplorer = (props: FileExplorerProps) => {
const fileManager = state.fileManager const fileManager = state.fileManager
helper.createNonClashingName(newFilePath, filesProvider, async (error, newName) => { helper.createNonClashingName(newFilePath, filesProvider, async (error, newName) => {
console.log('newFilePath: ', newFilePath)
console.log('newName: ', newName)
if (error) { if (error) {
modal('Create File Failed', error, { modal('Create File Failed', error, {
label: 'Close', label: 'Close',
...@@ -340,7 +338,6 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -340,7 +338,6 @@ export const FileExplorer = (props: FileExplorerProps) => {
try { try {
const exists = await fileManager.exists(dirName, 'folder') const exists = await fileManager.exists(dirName, 'folder')
console.log('exists: ', exists)
if (exists) return if (exists) return
await fileManager.mkdir(dirName) await fileManager.mkdir(dirName)
...@@ -348,7 +345,6 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -348,7 +345,6 @@ export const FileExplorer = (props: FileExplorerProps) => {
return { ...prevState, focusElement: [{ key: newFolderPath, type: 'folder' }] } return { ...prevState, focusElement: [{ key: newFolderPath, type: 'folder' }] }
}) })
} catch (e) { } catch (e) {
console.log('error: ', e)
toast('Failed to create folder: ' + newFolderPath) toast('Failed to create folder: ' + newFolderPath)
} }
} }
...@@ -380,7 +376,6 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -380,7 +376,6 @@ export const FileExplorer = (props: FileExplorerProps) => {
try { try {
const fileManager = state.fileManager const fileManager = state.fileManager
const exists = await fileManager.exists(newPath, type) const exists = await fileManager.exists(newPath, type)
console.log('exists: ', exists)
if (exists) { if (exists) {
modal('Rename File Failed', 'File name already exists', { modal('Rename File Failed', 'File name already exists', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment