[go: up one dir, main page]

Menu

[r155]: / codeblue2 / client / rm.cpp  Maximize  Restore  History

Download this file

24 lines (17 with data), 353 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <fsclient.h>
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
if (argc != 4)
{
cout << "USAGE: rm <ip> <port> <dir>\n";
return -1;
}
Sector::init(argv[1], atoi(argv[2]));
Sector::login("test", "xxx");
Sector::remove(argv[3]);
Sector::logout();
Sector::close();
return 1;
}