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

Commit

Permalink
Wrap FTP members in speech marks
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Jul 17, 2017
1 parent 0d19672 commit a350f2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Forms/selectMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void UpdateListing(string Lib, string Obj)
foreach (string member in members)
{
curItem = new ListViewItem(Path.GetFileNameWithoutExtension(member), 0);
curItem.Tag = Lib + '.' + Obj;
curItem.Tag = Lib + '|' + Obj;

curItems.Add(curItem);
}
Expand Down Expand Up @@ -114,7 +114,7 @@ private void listView1_DoubleClick(object sender, EventArgs e)
string tag = (string)selection.Tag;
if (tag != "")
{
string[] path = tag.Split('.');
string[] path = tag.Split('|');

OpenMember(path[0], path[1], selection.Text, false);
}
Expand Down Expand Up @@ -157,7 +157,7 @@ private void toolStripMenuItem1_Click(object sender, EventArgs e)
string tag = (string)selection.Tag;
if (tag != "")
{
string[] path = tag.Split('.');
string[] path = tag.Split('|');

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

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

Thread gothread = new Thread((ThreadStart)delegate {
NppFunctions.DisplayErrors(path[0], selection.Text);
Expand Down
4 changes: 2 additions & 2 deletions IBMiTools/IBMiUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static string DownloadMember(string Lib, string Obj, string Mbr)

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

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

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

//Returns true if successful
return !IBMi.RunCommands(commands.ToArray());
Expand Down
2 changes: 1 addition & 1 deletion LanguageTools/ErrorHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void getErrors(string lib, string obj)

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

IBMi.RunCommands(commands.ToArray());

Expand Down

0 comments on commit a350f2a

Please sign in to comment.