Added cp command.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a9a4bc6e1c
commit
1137bb03cc
1361
src/tools/fs_shell/command_cp.cpp
Normal file
1361
src/tools/fs_shell/command_cp.cpp
Normal file
File diff suppressed because it is too large
Load Diff
22
src/tools/fs_shell/command_cp.h
Normal file
22
src/tools/fs_shell/command_cp.h
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright 2005-2007, Ingo Weinhold, bonefish@cs.tu-berlin.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
#ifndef _FSSH_COMMAND_CP_H
|
||||
#define _FSSH_COMMAND_CP_H
|
||||
|
||||
|
||||
#include "fssh_defs.h"
|
||||
|
||||
|
||||
namespace FSShell {
|
||||
|
||||
|
||||
fssh_status_t command_cp(int argc, const char* const* argv);
|
||||
|
||||
|
||||
} // namespace FSShell
|
||||
|
||||
|
||||
#endif // _FSSH_COMMAND_CP_H
|
@ -14,6 +14,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "command_cp.h"
|
||||
#include "fd.h"
|
||||
#include "fssh_dirent.h"
|
||||
#include "fssh_errors.h"
|
||||
@ -833,6 +834,7 @@ register_commands()
|
||||
{
|
||||
CommandManager::Default()->AddCommands(
|
||||
command_cd, "cd", "change current directory",
|
||||
command_cp, "cp", "copy files and directories",
|
||||
command_help, "help", "list supported commands",
|
||||
command_ln, "ln", "create a hard or symbolic link",
|
||||
command_ls, "ls", "list files or directories",
|
||||
|
Loading…
Reference in New Issue
Block a user