|
Lines 103-108
Link Here
|
| 103 |
#define I_SYMLINK 21 |
103 |
#define I_SYMLINK 21 |
| 104 |
#define I_VERSION 22 |
104 |
#define I_VERSION 22 |
| 105 |
#define I_PROGRESS 23 |
105 |
#define I_PROGRESS 23 |
|
|
106 |
#define I_LRM 24 |
| 107 |
#define I_LRMDIR 25 |
| 106 |
|
108 |
|
| 107 |
struct CMD { |
109 |
struct CMD { |
| 108 |
const char *c; |
110 |
const char *c; |
|
Lines 127-132
Link Here
|
| 127 |
{ "lmkdir", I_LMKDIR }, |
129 |
{ "lmkdir", I_LMKDIR }, |
| 128 |
{ "ln", I_SYMLINK }, |
130 |
{ "ln", I_SYMLINK }, |
| 129 |
{ "lpwd", I_LPWD }, |
131 |
{ "lpwd", I_LPWD }, |
|
|
132 |
{ "lrm", I_LRM }, |
| 133 |
{ "lrmdir", I_LRMDIR }, |
| 130 |
{ "ls", I_LS }, |
134 |
{ "ls", I_LS }, |
| 131 |
{ "lumask", I_LUMASK }, |
135 |
{ "lumask", I_LUMASK }, |
| 132 |
{ "mkdir", I_MKDIR }, |
136 |
{ "mkdir", I_MKDIR }, |
|
Lines 184-189
Link Here
|
| 184 |
printf("ln oldpath newpath Symlink remote file\n"); |
188 |
printf("ln oldpath newpath Symlink remote file\n"); |
| 185 |
printf("lmkdir path Create local directory\n"); |
189 |
printf("lmkdir path Create local directory\n"); |
| 186 |
printf("lpwd Print local working directory\n"); |
190 |
printf("lpwd Print local working directory\n"); |
|
|
191 |
printf("lrmdir Remove local directory\n"); |
| 192 |
printf("lrm Delete local file\n"); |
| 187 |
printf("ls [path] Display remote directory listing\n"); |
193 |
printf("ls [path] Display remote directory listing\n"); |
| 188 |
printf("lumask umask Set local umask to 'umask'\n"); |
194 |
printf("lumask umask Set local umask to 'umask'\n"); |
| 189 |
printf("mkdir path Create remote directory\n"); |
195 |
printf("mkdir path Create remote directory\n"); |
|
Lines 932-937
Link Here
|
| 932 |
case I_CHDIR: |
938 |
case I_CHDIR: |
| 933 |
case I_LCHDIR: |
939 |
case I_LCHDIR: |
| 934 |
case I_LMKDIR: |
940 |
case I_LMKDIR: |
|
|
941 |
case I_LRM: |
| 942 |
case I_LRMDIR: |
| 935 |
/* Get pathname (mandatory) */ |
943 |
/* Get pathname (mandatory) */ |
| 936 |
if (get_pathname(&cp, path1)) |
944 |
if (get_pathname(&cp, path1)) |
| 937 |
return(-1); |
945 |
return(-1); |
|
Lines 1125-1130
Link Here
|
| 1125 |
case I_LLS: |
1133 |
case I_LLS: |
| 1126 |
local_do_ls(cmd); |
1134 |
local_do_ls(cmd); |
| 1127 |
break; |
1135 |
break; |
|
|
1136 |
case I_LRM: |
| 1137 |
if (unlink(path1) == -1){ |
| 1138 |
error("Couldn't delete local file " |
| 1139 |
"\"%s\": %s", path1, strerror(errno)); |
| 1140 |
err = 1; |
| 1141 |
} |
| 1142 |
break; |
| 1143 |
case I_LRMDIR: |
| 1144 |
if (rmdir(path1) == -1){ |
| 1145 |
error("Couldn't remove local directory " |
| 1146 |
"\"%s\": %s", path1, strerror(errno)); |
| 1147 |
err = 1; |
| 1148 |
} |
| 1149 |
break; |
| 1128 |
case I_SHELL: |
1150 |
case I_SHELL: |
| 1129 |
local_do_shell(cmd); |
1151 |
local_do_shell(cmd); |
| 1130 |
break; |
1152 |
break; |