Sample FTP Session to Create Directories

Sample FTP Session to Create Directories

Blogger can not create new directories on your web site. So, when you publish a blog, an archive or upload a file the directory to put it into must already exist on your web site.

Unless you are ok with using the default or root directory on your web site for all of your files (ok, if you only have a few files), you will want to be able to create directories on your website to better organize your files.

An FTP program or 'FTP client' is the usual way to do this. There are sophisticated FTP programs one can use for this purpose, but there is also a simple ftp client built into Windows that can be used. This is a sample session using the windows ftp client to make some new directories on a web site.

In this session we

What you type will look like this and everything else are titles, commentary or responses from the system. It should be clear which is which.

Start FTP and login

Start and log-in. Website, username and password hidden or modified for security. We start from the Windows command prompt and type:

ftp yourwebsite.com

Connected to yourwebsite.com.
220-Guest logins are not allowed here.  You must login with your assigned
220-username and password with your FTP client program.  If you're using
220-Internet Explorer, try the "Login as..." menu option under the "File" menu,
220-or in other FTP client programs, you can try this URL:
220-
220-    ftp://username@YourDomainName/
220
User (yourwebsite.com:(none)): USERNAME
331 User USERNAME okay, need password.
Password: password
230 Restricted user logged in.

Make a Directory

List the directory. Note that 'blogging' is not there, yet.

ftp> ls

200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
2003_11_01_archive.html
gar_face2.jpg
gdform.php
index.html
missing.html
simon4.jpg
stats
226 Listing completed.
ftp: 97 bytes received in 0.00Seconds 97000.00Kbytes/sec.

Make a directory called 'blogging'.

ftp> mkdir blogging

257 "/blogging" directory created.

List the directory. Note that 'blogging' is there, now.

ftp> ls

200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
2003_11_01_archive.html
blogging
gar_face2.jpg
gdform.php
index.html
missing.html
simon4.jpg
stats
226 Listing completed.
ftp: 107 bytes received in 0.02Seconds 6.69Kbytes/sec.

Make another Directory

Make a directory called 'images'.

ftp> mkdir images

257 "/images" directory created.

List the directory. Note that 'images' is there, now.

ftp> ls

200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
2003_11_01_archive.html
blogging
gar_face2.jpg
gdform.php
images
index.html
missing.html
simon4.jpg
stats
226 Listing completed.
ftp: 115 bytes received in 0.01Seconds 7.67Kbytes/sec.

Make a Subdirectory

Change to the directory called blogging.

ftp> cd blogging

250 "/blogging" is new cwd.

List the directory. Note that 'archives' is not there, yet.

ftp> ls

200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
226 Listing completed.

Make a directory called 'archives'.

ftp> mkdir archives

257 "/blogging/archives" directory created.

List the directory. Note that 'archives' is there, now.

ftp> ls

200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
archives
226 Listing completed.
ftp: 10 bytes received in 0.00Seconds 10000.00Kbytes/sec.

Logout and exit

Log out and exit.

ftp> bye

221 Goodbye.