diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-26 12:34:27 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-26 12:34:27 +0100 |
commit | f2ccc0eaa3db7366787e2fa76ae52554e93b71f1 (patch) | |
tree | ec6f4ec10f5f710d8fd23ecef7e36967d89435ac /Source/Applications/Shell/Shell-fs.class.cpp | |
parent | 6994f34953fac9462e899d0b2c7af64e21c92a1e (diff) | |
download | Melon-f2ccc0eaa3db7366787e2fa76ae52554e93b71f1.tar.gz Melon-f2ccc0eaa3db7366787e2fa76ae52554e93b71f1.zip |
More work on the same stuff, all shell aplets are now external bins
Diffstat (limited to 'Source/Applications/Shell/Shell-fs.class.cpp')
-rw-r--r-- | Source/Applications/Shell/Shell-fs.class.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Source/Applications/Shell/Shell-fs.class.cpp b/Source/Applications/Shell/Shell-fs.class.cpp deleted file mode 100644 index 7607f34..0000000 --- a/Source/Applications/Shell/Shell-fs.class.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include "Shell.class.h" -#include <TextFile.class.h> -#include <Binding/Process.class.h> - -void Shell::rm(Vector<String>& args) { - if (args.size() == 1) outvt << "No file to remove.\n"; - for (u32int i = 1; i < args.size(); i++) { - if (!FS::find(args[i], cwd).remove()) { - outvt << "Error while removing file " << args[i] << "\n"; - } - } -} - -void Shell::mkdir(Vector<String>& args) { - if (args.size() == 1) outvt << "No directory to create.\n"; - for (u32int i = 1; i < args.size(); i++) { - if (!FS::mkdir(args[i], cwd).valid()) { - outvt << "Error while creating directory " << args[i] << "\n"; - } - } -} - -void Shell::wf(Vector<String>& args) { - if (args.size() == 1) { - outvt << "No file to write !\n"; - } else { - TextFile f(args[1], FM_TRUNCATE, cwd); - if (f.valid() && f.validOpened()) { - outvt << "Enter contents for file " << args[1] << " and end your entry with <CR>.<CR>\n"; - String t = invt.readLine(); - while (t != ".") { - f.write(t, true); - t = invt.readLine(); - } - f.close(); - } else { - outvt << "Error opening file.\n"; - } - } -} - |