line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TotalCmd::FSPlugin;
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require Exporter;
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
@ISA = qw(Exporter);
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = 0.03;
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @EXPORT = (
|
10
|
|
|
|
|
|
|
INVALID_HANDLE_VALUE,
|
11
|
|
|
|
|
|
|
FS_FILE_OK,
|
12
|
|
|
|
|
|
|
FS_FILE_EXISTS,
|
13
|
|
|
|
|
|
|
FS_FILE_NOTFOUND,
|
14
|
|
|
|
|
|
|
FS_FILE_READERROR,
|
15
|
|
|
|
|
|
|
FS_FILE_WRITEERROR,
|
16
|
|
|
|
|
|
|
FS_FILE_USERABORT,
|
17
|
|
|
|
|
|
|
FS_FILE_NOTSUPPORTED,
|
18
|
|
|
|
|
|
|
FS_FILE_EXISTSRESUMEALLOWED,
|
19
|
|
|
|
|
|
|
FS_EXEC_OK,
|
20
|
|
|
|
|
|
|
FS_EXEC_ERROR,
|
21
|
|
|
|
|
|
|
FS_EXEC_YOURSELF,
|
22
|
|
|
|
|
|
|
FS_EXEC_SYMLINK,
|
23
|
|
|
|
|
|
|
FS_COPYFLAGS_OVERWRITE,
|
24
|
|
|
|
|
|
|
FS_COPYFLAGS_RESUME,
|
25
|
|
|
|
|
|
|
FS_COPYFLAGS_MOVE,
|
26
|
|
|
|
|
|
|
FS_COPYFLAGS_EXISTS_SAMECASE,
|
27
|
|
|
|
|
|
|
FS_COPYFLAGS_EXISTS_DIFFERENTCASE,
|
28
|
|
|
|
|
|
|
RT_Other,
|
29
|
|
|
|
|
|
|
RT_UserName,
|
30
|
|
|
|
|
|
|
RT_Password,
|
31
|
|
|
|
|
|
|
RT_Account,
|
32
|
|
|
|
|
|
|
RT_UserNameFirewall,
|
33
|
|
|
|
|
|
|
RT_PasswordFirewall,
|
34
|
|
|
|
|
|
|
RT_TargetDir,
|
35
|
|
|
|
|
|
|
RT_URL,
|
36
|
|
|
|
|
|
|
RT_MsgOK,
|
37
|
|
|
|
|
|
|
RT_MsgYesNo,
|
38
|
|
|
|
|
|
|
RT_MsgOKCancel,
|
39
|
|
|
|
|
|
|
MSGTYPE_CONNECT,
|
40
|
|
|
|
|
|
|
MSGTYPE_DISCONNECT,
|
41
|
|
|
|
|
|
|
MSGTYPE_DETAILS,
|
42
|
|
|
|
|
|
|
MSGTYPE_TRANSFERCOMPLETE,
|
43
|
|
|
|
|
|
|
MSGTYPE_CONNECTCOMPLETE,
|
44
|
|
|
|
|
|
|
MSGTYPE_IMPORTANTERROR,
|
45
|
|
|
|
|
|
|
MSGTYPE_OPERATIONCOMPLETE,
|
46
|
|
|
|
|
|
|
FS_STATUS_START,
|
47
|
|
|
|
|
|
|
FS_STATUS_END ,
|
48
|
|
|
|
|
|
|
FS_STATUS_OP_LIST ,
|
49
|
|
|
|
|
|
|
FS_STATUS_OP_GET_SINGLE,
|
50
|
|
|
|
|
|
|
FS_STATUS_OP_GET_MULTI,
|
51
|
|
|
|
|
|
|
FS_STATUS_OP_PUT_SINGLE,
|
52
|
|
|
|
|
|
|
FS_STATUS_OP_PUT_MULTI,
|
53
|
|
|
|
|
|
|
FS_STATUS_OP_RENMOV_SINGLE,
|
54
|
|
|
|
|
|
|
FS_STATUS_OP_RENMOV_MULTI,
|
55
|
|
|
|
|
|
|
FS_STATUS_OP_DELETE ,
|
56
|
|
|
|
|
|
|
FS_STATUS_OP_ATTRIB ,
|
57
|
|
|
|
|
|
|
FS_STATUS_OP_MKDIR ,
|
58
|
|
|
|
|
|
|
FS_STATUS_OP_EXEC ,
|
59
|
|
|
|
|
|
|
FS_STATUS_OP_CALCSIZE ,
|
60
|
|
|
|
|
|
|
FS_STATUS_OP_SEARCH,
|
61
|
|
|
|
|
|
|
FS_STATUS_OP_SEARCH_TEXT ,
|
62
|
|
|
|
|
|
|
FS_STATUS_OP_SYNC_SEARCH ,
|
63
|
|
|
|
|
|
|
FS_STATUS_OP_SYNC_GET ,
|
64
|
|
|
|
|
|
|
FS_STATUS_OP_SYNC_PUT ,
|
65
|
|
|
|
|
|
|
FS_STATUS_OP_SYNC_DELETE ,
|
66
|
|
|
|
|
|
|
FS_ICONFLAG_SMALL ,
|
67
|
|
|
|
|
|
|
FS_ICONFLAG_BACKGROUND ,
|
68
|
|
|
|
|
|
|
FS_ICON_USEDEFAULT ,
|
69
|
|
|
|
|
|
|
FS_ICON_EXTRACTED ,
|
70
|
|
|
|
|
|
|
FS_ICON_EXTRACTED_DESTROY ,
|
71
|
|
|
|
|
|
|
FS_ICON_DELAYED ,
|
72
|
|
|
|
|
|
|
);
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
our @EXPORT_OK = (
|
75
|
|
|
|
|
|
|
);
|
76
|
|
|
|
|
|
|
|
77
|
1
|
|
|
1
|
|
6130
|
use constant INVALID_HANDLE_VALUE => -1;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
77
|
|
78
|
|
|
|
|
|
|
|
79
|
1
|
|
|
1
|
|
5
|
use constant FS_FILE_OK => 0;
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
43
|
|
80
|
1
|
|
|
1
|
|
5
|
use constant FS_FILE_EXISTS => 1;
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
49
|
|
81
|
1
|
|
|
1
|
|
4
|
use constant FS_FILE_NOTFOUND => 2;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
82
|
1
|
|
|
1
|
|
4
|
use constant FS_FILE_READERROR => 3;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
83
|
1
|
|
|
1
|
|
5
|
use constant FS_FILE_WRITEERROR => 4;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
84
|
1
|
|
|
1
|
|
4
|
use constant FS_FILE_USERABORT => 5;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
85
|
1
|
|
|
1
|
|
4
|
use constant FS_FILE_NOTSUPPORTED => 6;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
86
|
1
|
|
|
1
|
|
4
|
use constant FS_FILE_EXISTSRESUMEALLOWED => 7;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
87
|
|
|
|
|
|
|
|
88
|
1
|
|
|
1
|
|
4
|
use constant FS_EXEC_OK => 0;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
89
|
1
|
|
|
1
|
|
10
|
use constant FS_EXEC_ERROR => 1;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
90
|
1
|
|
|
1
|
|
4
|
use constant FS_EXEC_YOURSELF => -1;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
91
|
1
|
|
|
1
|
|
4
|
use constant FS_EXEC_SYMLINK => -2;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
92
|
|
|
|
|
|
|
|
93
|
1
|
|
|
1
|
|
14
|
use constant FS_COPYFLAGS_OVERWRITE => 1;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
94
|
1
|
|
|
1
|
|
4
|
use constant FS_COPYFLAGS_RESUME => 2;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
95
|
1
|
|
|
1
|
|
4
|
use constant FS_COPYFLAGS_MOVE => 4;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
96
|
1
|
|
|
1
|
|
4
|
use constant FS_COPYFLAGS_EXISTS_SAMECASE => 8;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
97
|
1
|
|
|
1
|
|
5
|
use constant FS_COPYFLAGS_EXISTS_DIFFERENTCASE => 16;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
# flags for tRequestProc
|
100
|
1
|
|
|
1
|
|
4
|
use constant RT_Other => 0;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
101
|
1
|
|
|
1
|
|
4
|
use constant RT_UserName => 1;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
102
|
1
|
|
|
1
|
|
3
|
use constant RT_Password => 2;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
103
|
1
|
|
|
1
|
|
4
|
use constant RT_Account => 3;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
104
|
1
|
|
|
1
|
|
4
|
use constant RT_UserNameFirewall => 4;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
105
|
1
|
|
|
1
|
|
3
|
use constant RT_PasswordFirewall => 5;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
106
|
1
|
|
|
1
|
|
4
|
use constant RT_TargetDir => 6;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
107
|
1
|
|
|
1
|
|
4
|
use constant RT_URL => 7;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
108
|
1
|
|
|
1
|
|
4
|
use constant RT_MsgOK => 8;
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
29
|
|
109
|
1
|
|
|
1
|
|
4
|
use constant RT_MsgYesNo => 9;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
50
|
|
110
|
1
|
|
|
1
|
|
4
|
use constant RT_MsgOKCancel => 10;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# flags for tLogProc
|
113
|
1
|
|
|
1
|
|
5
|
use constant MSGTYPE_CONNECT => 1;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
114
|
1
|
|
|
1
|
|
6
|
use constant MSGTYPE_DISCONNECT => 2;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
115
|
1
|
|
|
1
|
|
5
|
use constant MSGTYPE_DETAILS => 3;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
116
|
1
|
|
|
1
|
|
5
|
use constant MSGTYPE_TRANSFERCOMPLETE => 4;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
44
|
|
117
|
1
|
|
|
1
|
|
10
|
use constant MSGTYPE_CONNECTCOMPLETE => 5;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
118
|
1
|
|
|
1
|
|
4
|
use constant MSGTYPE_IMPORTANTERROR => 6;
|
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
35
|
|
119
|
1
|
|
|
1
|
|
4
|
use constant MSGTYPE_OPERATIONCOMPLETE => 7;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
# flags for FsStatusInfo
|
122
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_START => 0;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
123
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_END => 1;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
124
|
|
|
|
|
|
|
|
125
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_LIST => 1;
|
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
32
|
|
126
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_GET_SINGLE => 2;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
127
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_GET_MULTI => 3;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
128
|
1
|
|
|
1
|
|
3
|
use constant FS_STATUS_OP_PUT_SINGLE => 4;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
129
|
1
|
|
|
1
|
|
3
|
use constant FS_STATUS_OP_PUT_MULTI => 5;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
130
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_RENMOV_SINGLE => 6;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
46
|
|
131
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_RENMOV_MULTI => 7;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
132
|
1
|
|
|
1
|
|
5
|
use constant FS_STATUS_OP_DELETE => 8;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
133
|
1
|
|
|
1
|
|
5
|
use constant FS_STATUS_OP_ATTRIB => 9;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
54
|
|
134
|
1
|
|
|
1
|
|
5
|
use constant FS_STATUS_OP_MKDIR => 10;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
135
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_EXEC => 11;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
46
|
|
136
|
1
|
|
|
1
|
|
5
|
use constant FS_STATUS_OP_CALCSIZE => 12;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
137
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_SEARCH => 13;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
138
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_SEARCH_TEXT => 14;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
139
|
1
|
|
|
1
|
|
5
|
use constant FS_STATUS_OP_SYNC_SEARCH => 15;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
140
|
1
|
|
|
1
|
|
5
|
use constant FS_STATUS_OP_SYNC_GET => 16;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
46
|
|
141
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_SYNC_PUT => 17;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
142
|
1
|
|
|
1
|
|
4
|
use constant FS_STATUS_OP_SYNC_DELETE => 18;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
|
145
|
1
|
|
|
1
|
|
4
|
use constant FS_ICONFLAG_SMALL => 1;
|
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
50
|
|
146
|
1
|
|
|
1
|
|
5
|
use constant FS_ICONFLAG_BACKGROUND => 2;
|
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
49
|
|
147
|
|
|
|
|
|
|
|
148
|
1
|
|
|
1
|
|
4
|
use constant FS_ICON_USEDEFAULT => 0;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
149
|
1
|
|
|
1
|
|
5
|
use constant FS_ICON_EXTRACTED => 1;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
150
|
1
|
|
|
1
|
|
5
|
use constant FS_ICON_EXTRACTED_DESTROY => 2;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
151
|
1
|
|
|
1
|
|
4
|
use constant FS_ICON_DELAYED => 3;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
48
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
1;
|
156
|
|
|
|
|
|
|
__END__
|