Skip to content
This repository was archived by the owner on Mar 4, 2018. It is now read-only.

Commit a350f2a

Browse files
committed
Wrap FTP members in speech marks
1 parent 0d19672 commit a350f2a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Forms/selectMember.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void UpdateListing(string Lib, string Obj)
4949
foreach (string member in members)
5050
{
5151
curItem = new ListViewItem(Path.GetFileNameWithoutExtension(member), 0);
52-
curItem.Tag = Lib + '.' + Obj;
52+
curItem.Tag = Lib + '|' + Obj;
5353

5454
curItems.Add(curItem);
5555
}
@@ -114,7 +114,7 @@ private void listView1_DoubleClick(object sender, EventArgs e)
114114
string tag = (string)selection.Tag;
115115
if (tag != "")
116116
{
117-
string[] path = tag.Split('.');
117+
string[] path = tag.Split('|');
118118

119119
OpenMember(path[0], path[1], selection.Text, false);
120120
}
@@ -157,7 +157,7 @@ private void toolStripMenuItem1_Click(object sender, EventArgs e)
157157
string tag = (string)selection.Tag;
158158
if (tag != "")
159159
{
160-
string[] path = tag.Split('.');
160+
string[] path = tag.Split('|');
161161

162162
OpenMember(path[0], path[1], selection.Text, true);
163163
}
@@ -173,7 +173,7 @@ private void toolStripMenuItem2_Click(object sender, EventArgs e)
173173
string tag = (string)selection.Tag;
174174
if (tag != "")
175175
{
176-
string[] path = tag.Split('.');
176+
string[] path = tag.Split('|');
177177

178178
OpenMember(path[0], path[1], selection.Text, false);
179179
}
@@ -189,7 +189,7 @@ private void loadErrorsToolStripMenuItem_Click(object sender, EventArgs e)
189189
string tag = (string)selection.Tag;
190190
if (tag != "")
191191
{
192-
string[] path = tag.Split('.');
192+
string[] path = tag.Split('|');
193193

194194
Thread gothread = new Thread((ThreadStart)delegate {
195195
NppFunctions.DisplayErrors(path[0], selection.Text);

IBMiTools/IBMiUtilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static string DownloadMember(string Lib, string Obj, string Mbr)
5454

5555
commands.Add("ASCII");
5656
commands.Add("cd /QSYS.lib");
57-
commands.Add("recv " + Lib + ".lib/" + Obj + ".file/" + Mbr + ".mbr \"" + filetemp + "\"");
57+
commands.Add("recv \"" + Lib + ".lib/" + Obj + ".file/" + Mbr + ".mbr\" \"" + filetemp + "\"");
5858

5959
if (IBMi.RunCommands(commands.ToArray()) == false)
6060
{
@@ -76,7 +76,7 @@ public static bool UploadMember(string Local, string Lib, string Obj, string Mbr
7676

7777
commands.Add("ASCII");
7878
commands.Add("cd /QSYS.lib");
79-
commands.Add("put \"" + Local + "\" " + Lib + ".lib/" + Obj + ".file/" + Mbr + ".mbr");
79+
commands.Add("put \"" + Local + "\" \"" + Lib + ".lib/" + Obj + ".file/" + Mbr + ".mbr\"");
8080

8181
//Returns true if successful
8282
return !IBMi.RunCommands(commands.ToArray());

LanguageTools/ErrorHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void getErrors(string lib, string obj)
2727

2828
commands.Add("ASCII");
2929
commands.Add("cd /QSYS.lib");
30-
commands.Add("recv " + lib + ".lib/EVFEVENT.file/" + obj + ".mbr \"" + filetemp + "\"");
30+
commands.Add("recv \"" + lib + ".lib/EVFEVENT.file/" + obj + ".mbr\" \"" + filetemp + "\"");
3131

3232
IBMi.RunCommands(commands.ToArray());
3333

0 commit comments

Comments
 (0)