How Do I determine the full path to a directory?

Question:

I have a script that is asking for the full path to a file. How do I determine this?

Answer:

Hi,

The full path would be:

/home/your_username/

plus the rest of the path in your ftp.

For example if it was in your

data

dir it would be :

/home/your_username/data/

if it was in :

some_dir1/sub_dir2/data

it would be :

/home/your_username/some_dir1/sub_dir2/data

Be sure to replace :

your_username

with your actual username

Also, keep in mind that all server paths are case-sensitive. Use all lowercase unless one of your directories has capital letters in it.

Leave a Reply

Your email address will not be published. Required fields are marked *