The basic Squeak FTP code works. I entered these lines in a workspace, &quot;do it&quot; to each, and got a listing of my home account at my ISP. Now I suspect the issue is with how the ftp:// line is being parsed.<div><br>
</div><div>I used <a href="ftp://knowtree">ftp://knowtree</a>@<a href="http://leahi.aloha.com/chalkdustbooks/MyBook1.sp">leahi.aloha.com/chalkdustbooks/MyBook1.sp</a> for my book, in place of my iMac, and got the same error. And yes, I previously created that folder and it shows in the listing returned by this code.<br>
<div><br></div><div><div>leahi := ServerDirectory new.</div><div><br></div><div>leahi server: &#39;<a href="http://leahi.aloha.com">leahi.aloha.com</a>&#39;</div><div><br></div><div>leahi user: &#39;knowtree&#39;</div><div>
<br></div><div>leahi password: &#39;MyActualPassword&#39;</div><div><br></div><div>leahi directory: &#39;/&#39;</div><div><br></div><div>Transcript show: leahi getFileList</div><div><br></div><div><br><br><div class="gmail_quote">
On Thu, Jul 28, 2011 at 10:29 PM, Gary Dunn <span dir="ltr">&lt;<a href="mailto:garydunnhi@gmail.com">garydunnhi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Same result in Win7.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 28, 2011 at 11:24 AM, Gary Dunn <span dir="ltr">&lt;<a href="mailto:garydunnhi@gmail.com" target="_blank">garydunnhi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is one of those dumb brain freeze things that I hope will be easy to answer for someone already doing this.<div><br></div><div>I am finishing up my how-to-make-a-book book and want to inclde a section on uploading to a server. To get started I thought I&#39;d work out how to upload and download pages. Right off the bat I got an error. BookMorph&gt;&gt;getStemUrl fails at</div>


<div><br></div><div>initial isEmpty<div><span style="white-space:pre-wrap">                </span>ifTrue: [initial := ServerDirectory defaultStemUrl , &#39;1.sp&#39;].</div><div><br></div><div>because ServerDirectory does not have the requested server in a Dictionary. When I look at that code it appears to be creating a random name, which is not what I want. </div>


<div><br></div><div>According to some class comments (sorry, can&#39;t find then now) I should come up with my url, like <a href="ftp://server/folder/myBook1.sp" target="_blank">ftp://server/folder/myBook1.sp</a> and when I do Book menu &quot;send all pages to server&quot; I should select &quot;Use page numbers&quot; and paste in my URL. I never got the chance to paste in my URL. </div>


<div><br></div><div>Back in </div><div><br></div><div><div>getStemUrl</div><div><span style="white-space:pre-wrap">        </span>&quot;Try to find the old place where this book was stored. Confirm with the </div>
<div><span style="white-space:pre-wrap">        </span>user. Else ask for new place.&quot;</div><div><span style="white-space:pre-wrap">        </span>| initial pg url knownURL |</div><div><br></div>
<div><span style="white-space:pre-wrap">        </span>knownURL := false.</div><div><span style="white-space:pre-wrap">        </span>initial := &#39;&#39;.</div></div><div><br></div>I changed the value of initial to my URL, </div>
<div><br></div><div><div><div><span style="white-space:pre-wrap">        </span>initial := &#39;<a href="ftp://10.0.1.10/squeakftp/myBook1.sp" target="_blank">ftp://10.0.1.10/squeakftp/myBook1.sp</a>&#39;.</div></div></div>
<div><br></div><div>Now I am asked for the URL, with that one filled in. But then I get a prompt for the password for nil. Naturally that failed. More reading class comments and code comments (thank goodness for those!) I discovered that I can add my username with a URL of &#39;<a href="ftp://gary" target="_blank">ftp://gary</a>@<a href="http://10.0.1.10/squeakftp/myBook1.sp" target="_blank">10.0.1.10/squeakftp/myBook1.sp</a>&#39;</div>


<div><br></div><div>Almost there.</div><div><br></div><div>I am prompted for the URL twice. After the second prompt I get the password prompt, then an error. My FTP server has replied 550 squeakftp: no such directory (or something similar). </div>


<div><br></div><div>I can connect from the same host (my laptop running FreeBSD) using the command line FTP, works fine. I can also use gFTP. I even changed the permissions on the squeakftp folder to 777. </div><div><br>

</div>
<div>I tried &#39;<a href="ftp://gary" target="_blank">ftp://gary</a>@<a href="http://10.0.1.10/Users/gary/squeakftp/myBook1.sp" target="_blank">10.0.1.10/Users/gary/squeakftp/myBook1.sp</a>&#39; (the server is an iMac, so the full path is /Users/gary/squeakftp). Also 550.</div>


<div><br></div><div>I tried &#39;<a href="ftp://gary" target="_blank">ftp://gary</a>@<a href="http://10.0.1.10//Users/gary/squeakftp/myBook1.sp" target="_blank">10.0.1.10//Users/gary/squeakftp/myBook1.sp</a>&#39; but Squeak choked on the double slash -- asked for a second password for user nil. Not a problem.</div>


<div><br></div><div>Any ideas why I am getting the 550 error?</div><div><br></div><div>Note to self: try it from Windows instead of FreeBSD.</div><div><br></div><font color="#888888"><div>-- <br>Gary Dunn<br>Honolulu<br>


</div><div><a href="http://openslate.org/" target="_blank">http://openslate.org/</a></div><div><br></div>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Gary Dunn<br>Honolulu<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gary Dunn<br>Honolulu<br>
</div></div></div>