diff --git a/src/app/shared/system-service/file.service.ts b/src/app/shared/system-service/file.service.ts index 4e027c4f..3ab9bec9 100644 --- a/src/app/shared/system-service/file.service.ts +++ b/src/app/shared/system-service/file.service.ts @@ -48,7 +48,7 @@ export class FileService{ '/':{ fs: 'OverlayFS', options:{ - readable:{fs: 'XmlHttpRequest', options:{index: osDriveFileSystemIndex}}, + readable:{fs: 'XmlHttpRequest', options:{index: osDriveFileSystemIndex, baseUrl:'osdrive'}}, writable:{fs:"IndexedDB", options: {storeName: "browser-fs-cache"}} }, }, @@ -316,15 +316,17 @@ export class FileService{ await this.initBrowserFsAsync(); + const path1 = '/Desktop' return new Promise((resolve, reject) => { const fs = this._fileSystem; const interval = setInterval(() => { - fs.readdir(path, function(err, files) { + fs.readdir(path1, function(err, files) { if(err){ console.log("Oops! a boo boo happened, filesystem wasn't ready:", err); reject([]); }else{ clearInterval(interval); + console.log(`files:${files}`); resolve(files || []); } }); diff --git a/src/app/system-apps/terminal/terminal.component.ts b/src/app/system-apps/terminal/terminal.component.ts index 0e0a6fc6..e9050b97 100644 --- a/src/app/system-apps/terminal/terminal.component.ts +++ b/src/app/system-apps/terminal/terminal.component.ts @@ -640,8 +640,6 @@ export class TerminalComponent implements BaseComponent, OnInit, AfterViewInit, terminalCmd.setCommandOutput = result; } - - if(rootCmd == "mv"){ const result = await this._terminaCommandsImpl.mv(cmdStringArr[1], cmdStringArr[2]); terminalCmd.setResponseCode = this.Success; @@ -649,9 +647,7 @@ export class TerminalComponent implements BaseComponent, OnInit, AfterViewInit, } if (rootCmd == "cp"){ - const option = cmdStringArr[1]; - const source = cmdStringArr[2]; const destination = cmdStringArr[3]; diff --git a/src/osdrive.json b/src/osdrive.json index 18bb0887..b56a8dd0 100644 --- a/src/osdrive.json +++ b/src/osdrive.json @@ -1 +1 @@ -{"osdrive":{"Desktop":{"fileexplorer.url":null,"heat.url":null,"hello.url":null,"surfs.url":null,"taskmanager.url":null,"terminal.url":null,"titanium.url":null},"Documents":{"Credits.md":null,"Dynamic Programming.txt":null,"PDFs":{"CyberPower_UM_EC650LCD 2.pdf":null,"MotherBoard":{"PRO-B650-P-WIFI.pdf":null}},"Screen-Shots":{"Sample ScreenShot.png":null},"starting a new proj in VSCode.txt":null},"Downloads":{"anothertest.txt":null},"Games":{"D3D.url":null,"Data":{"D3D.jsdos":null,"Digger.jsdos":null,"Doom.jsdos":null,"Jill of the Jungle.jsdos":null,"Machine Nation.jsdos":null,"Shadow Knight.jsdos":null},"Diggers.url":null,"Doom.url":null,"Flash-Games ":{"logo-anim.swf":null},"icons":{"d3d.png":null,"diggers.png":null,"doom.png":null,"doom1.png":null}},"Music":{"jazz-club-in-new-orleans.mp3":null,"titanium.mp3":null},"Pictures":{"Samples":{"Chill on the Moon.jpg":null,"Sparkling Water.jpg":null,"Sunset Car.jpg":null,"Sunset.jpg":null,"mystical.jpg":null,"no_img.jpeg":null},"favicon.ico":null,"favicon1.ico":null,"favicon_nice.png":null,"heat.png":null},"Videos":{"nuts.mp4":null,"surfs.mp4":null},"icons":{"arrow_down.png":null,"arrow_next.png":null,"arrow_up.png":null,"audioplayer.png":null,"camera_48.png":null,"chkmark26.png":null,"chkmark32.png":null,"circle.png":null,"cmd.ico":null,"code-editor-2_48.png":null,"code-editor_64.png":null,"config.ico":null,"content_view.ico":null,"cross_mark_32.png":null,"desktop.ico":null,"desktop_folder.ico":null,"details_pane.ico":null,"details_view.ico":null,"documents.ico":null,"documents_folder.ico":null,"downloads.ico":null,"downloads.png":null,"downloads1.png":null,"downloads_folder.ico":null,"econo.png":null,"empty_folder.ico":null,"empty_recycle.ico":null,"emulator-1.png":null,"emulator-2.png":null,"extral_large_image.ico":null,"file.ico":null,"file_explorer.ico":null,"file_explorer.png":null,"flash48.png":null,"flash_67.png":null,"floppy.ico":null,"folder.ico":null,"games.ico":null,"generic-program.ico":null,"grey_history_32.png":null,"grey_nav_expand_32.png":null,"grey_nav_forward_32.png":null,"grey_nav_refresh_32.png":null,"image.ico":null,"info_48.png":null,"js-dos-logo.png":null,"large_image.ico":null,"list_of_thumbnails_view.ico":null,"markdown-2_50.png":null,"markdown-50.png":null,"markdown-file_50.png":null,"medium_icons_view.ico":null,"music.png":null,"music_file.ico":null,"music_folder.ico":null,"my_computer.ico":null,"nav_expand_32.png":null,"nav_left_32.png":null,"nav_right_32.png":null,"nav_up-32.png":null,"navigation_pane.ico":null,"non_empty_folder.ico":null,"non_empty_recycle.ico":null,"pdf-48.png":null,"photos_48.png":null,"picture_folder.ico":null,"pictures.ico":null,"pin_24.png":null,"preview_pane.ico":null,"red-x_50.png":null,"search_32.png":null,"small_icons_view.ico":null,"taskmanger.png":null,"taskmanger_2.png":null,"terminal-2_48.png":null,"terminal_48.png":null,"text-editor_48.png":null,"tiles_view.ico":null,"unknown.ico":null,"unpin_24.png":null,"unpin_32.png":null,"video.ico":null,"video_file.ico":null,"video_folder.ico":null,"videoplayer-2_48.png":null,"videoplayer.png":null,"vs-code_48.png":null,"vs-code_64.png":null,"white_history_32.png":null,"x_32.png":null,"zip_folder.ico":null},"simple.txt":null}} +{"Desktop":{"fileexplorer.url":null,"heat.url":null,"hello.url":null,"surfs.url":null,"taskmanager.url":null,"terminal.url":null,"titanium.url":null},"Documents":{"Credits.md":null,"Dynamic Programming.txt":null,"PDFs":{"CyberPower_UM_EC650LCD 2.pdf":null,"MotherBoard":{"PRO-B650-P-WIFI.pdf":null}},"Screen-Shots":{"Sample ScreenShot.png":null},"starting a new proj in VSCode.txt":null},"Downloads":{"anothertest.txt":null},"Games":{"D3D.url":null,"Data":{"D3D.jsdos":null,"Digger.jsdos":null,"Doom.jsdos":null,"Jill of the Jungle.jsdos":null,"Machine Nation.jsdos":null,"Shadow Knight.jsdos":null},"Diggers.url":null,"Doom.url":null,"Flash-Games ":{"logo-anim.swf":null},"icons":{"d3d.png":null,"diggers.png":null,"doom.png":null,"doom1.png":null}},"Music":{"jazz-club-in-new-orleans.mp3":null,"titanium.mp3":null},"Pictures":{"Samples":{"Chill on the Moon.jpg":null,"Sparkling Water.jpg":null,"Sunset Car.jpg":null,"Sunset.jpg":null,"mystical.jpg":null,"no_img.jpeg":null},"favicon.ico":null,"favicon1.ico":null,"favicon_nice.png":null,"heat.png":null},"Videos":{"nuts.mp4":null,"surfs.mp4":null},"icons":{"arrow_down.png":null,"arrow_next.png":null,"arrow_up.png":null,"audioplayer.png":null,"camera_48.png":null,"chkmark26.png":null,"chkmark32.png":null,"circle.png":null,"cmd.ico":null,"code-editor-2_48.png":null,"code-editor_64.png":null,"config.ico":null,"content_view.ico":null,"cross_mark_32.png":null,"desktop.ico":null,"desktop_folder.ico":null,"details_pane.ico":null,"details_view.ico":null,"documents.ico":null,"documents_folder.ico":null,"downloads.ico":null,"downloads.png":null,"downloads1.png":null,"downloads_folder.ico":null,"econo.png":null,"empty_folder.ico":null,"empty_recycle.ico":null,"emulator-1.png":null,"emulator-2.png":null,"extral_large_image.ico":null,"file.ico":null,"file_explorer.ico":null,"file_explorer.png":null,"flash48.png":null,"flash_67.png":null,"floppy.ico":null,"folder.ico":null,"games.ico":null,"generic-program.ico":null,"grey_history_32.png":null,"grey_nav_expand_32.png":null,"grey_nav_forward_32.png":null,"grey_nav_refresh_32.png":null,"image.ico":null,"info_48.png":null,"js-dos-logo.png":null,"large_image.ico":null,"list_of_thumbnails_view.ico":null,"markdown-2_50.png":null,"markdown-50.png":null,"markdown-file_50.png":null,"medium_icons_view.ico":null,"music.png":null,"music_file.ico":null,"music_folder.ico":null,"my_computer.ico":null,"nav_expand_32.png":null,"nav_left_32.png":null,"nav_right_32.png":null,"nav_up-32.png":null,"navigation_pane.ico":null,"non_empty_folder.ico":null,"non_empty_recycle.ico":null,"pdf-48.png":null,"photos_48.png":null,"picture_folder.ico":null,"pictures.ico":null,"pin_24.png":null,"preview_pane.ico":null,"red-x_50.png":null,"search_32.png":null,"small_icons_view.ico":null,"taskmanger.png":null,"taskmanger_2.png":null,"terminal-2_48.png":null,"terminal_48.png":null,"text-editor_48.png":null,"tiles_view.ico":null,"unknown.ico":null,"unpin_24.png":null,"unpin_32.png":null,"video.ico":null,"video_file.ico":null,"video_folder.ico":null,"videoplayer-2_48.png":null,"videoplayer.png":null,"vs-code_48.png":null,"vs-code_64.png":null,"white_history_32.png":null,"x_32.png":null,"zip_folder.ico":null},"simple.txt":null,"watr-fluid.mp3":null}