!FTPc is an internet ftp client for Risc OS. It is a program which enables you to upload and download files to and from your webspace and download files from the numerous ftp hosts on the net.
Click on the iconbar icon and the Login dialogue box pops up.
Login dialogue box
Filer window
The filer is used in a similar way to a disc filer with drag and drop etc. however there are the following differences:
When files/directories are uploaded any / is changed to a . so Ftp/zip is changed to Ftp.zip and a hard space is changed to a space. Any directories that don't exist are automatically created.
You can stop the upload process with by selecting Abort in the main menu
Downloaded files have any . changed to a / so Ftp.zip will become Ftp/zip and a space is changed to a hard space. Care must be taken as the file name will be truncated if the filing system where you drop the files does not support file names of that length. You can download with a different name via the SaveAs dialogue box. The new file name uses normal Risc OS filing system naming system.
You can change directories by double clicking on a directory () or entering the path in the change directory dialogue box on the main menu. You should enter the path using the syntax of the host e.g. archive/dir/dir1. Double clicking on a link (
) will change directories if it points to a directory otherwise it will pop up a Saveas dialogue box.
To move back click Adjust on the close icon,select Open parent from the main menu or double click on .
Note: Files which don't have extensions are marked type Data these may be typed automatically after downloading by inspection of the file.
You can delete, rename, move filing system objects and create directories. When entering names in the dialogue boxes they should use the remote filing system syntax and not Risc OS filing system syntax, so if you want to rename index.htm to anyfile.txt you should write anyfile.txt in the rename dialogue box.
To move a group of files into a subdirectory of a directory you should select the files and enter directory/subdirectory in the Move to dialogue box.
Clicking on Change Directory refreshes the listing or changes the directory to / if the current directory no longer exists.
Note: The SaveAs dialogue box is the only one which requires Risc OS filing system syntax
Just close the filer window
The Newer option on the Option menu allows you to specify the date from which files will be uploaded. eg If you set the date to when you last uploaded, only files created/modified after that date will be uploaded when a group of files/directories are dragged into the window
Newer date
The option is set by selecting Set and removed by unticking Newer on the Option submenu. Reset changes the time to the current time.
Please note the time/date you set is your local time and this time is compared to the time stamp of the file on your computer. You may be connected to a computer in a different time zone in which case the time appearing in the FTPc window after uploading may not be what you expect.
The remote host server may have a set of commands available which are dependant on the site you are connected to. These include commands such as CHMOD on a unix server and SETTYPE on an acorn server. These are generally tools to manage your remote site. The details of which are beyond this document. To use these commands click on Site... on the main menu and enter the command in the dialogue box.
Note:
!FTPc supports Ants and Acorns URL systems. This means that FTPc will be loaded and run if an ftp URL is clicked on in an application or when a URI file containing a ftp URL is double clicked on.
The general form of the ftp URL is:
ftp://user:password@host:port/path
where user,password, port and path are optional.
The URL could be as simple as
ftp://host
when you would be logged in anonymously to the root directory of the host
If the URL was
ftp://user@host
then you would be prompted for the password. You will also be prompted for, a user if you miss that out but supply a password, and a host if you miss that out.
The first / in the path is ignored so
ftp://user@host/dir1/dir2/
specifies a relative path dir1/dir2/ and
ftp://user@host//dir1/dir2/
specifies an absolute path /dir1/dir2/.
If the path ends in a / then the connection will be opened at the specified directory - if the directory is not found this defaults to the root directory.
If the path doesn't end in a / then the connection is opened at the directory specified up to the last / and the leaf name is highlighted in that directory if it is found.
Note: Path names are case sensitive.
Writing URI files
Write the URL in a text editor - eg ftp://ftp.xemplar.co.uk/acorn/ - save it and set its file type to URI. For my web site I may write something like
ftp://c-granville.freeserve.co.uk@uploads.freeserve.net/Images/docs/
which when double clicked on will prompt me for my password before connecting to my web site and changing the directory.
Using URL's with !Browse
If running a URI file results in !Browse being run, this is to do with the order in which !FTPc and !Browse are seen - shouldn't be a problem in the same directory
User menu's can be created in a text editor and the type set to FTPc (077)
The first line of the file should be Menu and the line following describe the menu entries. You can change the default user menu by:
Example menu
Menu
name="Acorn" value="ftp://ftp.acorn.co.uk/pub/acorn/"
name="My web page" value="ftp://user:pass@uploads.demon.co.uk"
name="Demon" value="ftp://ftp.demon.co.uk//pub/acorn/" line="on"
# menu item to open a directory
name="Download directory" value="$.downloads" type="file"
Note:
The abort command on the main menu allows you to stop the current operation.
Aborting may take some time to take place. If you abort during downloading it may not happen until the download of the file is complete - this depends on the site connected to.
URI's don't work
I you don't have Ant or Acorn internet software you'll need Acorns URI module which can be found at http://www.acorn.com/browser/uri/URI.arc and should be put in System:Modules.Network
Site created on hard disc doesn't work when downloaded
Remember the remote site is case sensitive.
Don't use spaces in filenames - FTPc will change <alt><space> in a file name to spaces when uploading so your links in HTML should have spaces in them. However when testing these files on your hard disc Browse will not do this conversion. It is best to avoid spaces they were only really added for downloading.
Email: colin@c-granville.freeserve.co.uk
Web site: http://www.c-granville.freeserve.co.uk
dialogue box | Window requiring typed input |
download | Transfer files from the remote host to your computer. |
filing system objects | These are the files, directories or links which can be created on filing systems although the ftp proces does not allow for the creation of links. |
ftp | File transfer protocol - procedure by which two computers can communicate with the intention of transferring files |
host | Another name for a computer |
link | A marker in a directory which points to a file or another directory. This is a feature of the remote filing system and not available on RiscOS. |
upload | Transfer files from your computer to the remote host. |
webspace | Disc space on a host which is permanently connected to the Internet. If you have a dialup account this would be allocated to you by your service provider. |
server | Program running on remote host which serves you your files and responds to your commands |
URL | Uniform Resource Locator - a description of where and how to find a resource on the net |