FTP

User 2129410 Photo


Registered User
5 posts

Hi All,

I'm trying to better understand FTP in CC. I guess I've learned that if I want to upload a folder containing my web project it must be in a subfolder of the project folder. For example, if myProject is the websiteproject folder. If I then go to upload website project it uploads the files, but not the myProject folder. If I want a folder uploaded with the project, it seem that it has to be a subdirectory of myProject. Is that correct?

Question 2......... If you have your project open and you previously uploaded the project to the server, you can't delete the folder containing the web project on the server. You can delete individual files, but not the folder. Is that correct?

Question 3............. If I want to edit a file on the server, it forces you to overwrite your local file. Is that correct? In other words, it's not possible to edit a remote file without it copying and overwriting the local file. Is that correct?

TIA,

Steve
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Steve, Let me try these one at a time as there are various answers to a couple of them.

1. You can put your projects anywhere you like. The only thing that the HTML Editor needs for your project to show up is the .cpf file ( of course your files need to be there too) so here's what I did. First I don't like leaving my "data" type files inside the directories of any programs installation directories. Although I know that in most cases CC doesn't delete them, I've had that happen with so many programs that I no longer trust any of them to not lose my data so I put them elsewhere.

I created a directory called Projects in the My Documents folder of my computer. Inside that directory are all the folders for each of my website projects and inside those directories are the files for each separate project. so it's like this:

C:\...\My Documents\projects\nameofprojecthere\filesoftheproject

or

C:\...\My Documents
>> projects
.....nameofproject1here (accessoriesofheoworld would be one example)
    folder
    folder
    folder
    file
    file
    file
    nameofproject.cpf

.....nameofproject2here
    folder
    folder
    folder
    file
    file
    file
    nameofproject.cpf

And so on down my list of projects at the moment.

Now, this is where it gets a little clearer hopefully. Once you have them setup, you point the directories in the project settings to the directory of that project, doesn't matter where it is on your drive as long as you point the directory to the exact directory that is holding the .cpf file for that particular project. You could have your projects all over your computer in totally different directories, doesn't matter as long as you tell the project settings where it is. Make sense? I hope? hehe


2. For deleting, the program and files on your computer have nothing to do with the ability to move or delete on your server. That would be a server side issue or function so if you are unable to delete folders, try contacting your server hosting company and see if there's something you need to do or set to be able to do so. Some hosting companies don't have that ability to delete folders that have files in them at all, and some do. Doesn't matter what you have on your computer or uploaded etc. on that part.

3. I "believe" you are right here, although I don't know why that should be. I too tried this the other day just to mess around with it a bit and it told me I had a file open already and asked if I wanted to overwrite it or close it, didn't give me the option to open it anyways etc.

What I do to compensate for this is I use the CC DirectFTP program when I want to edit something directly on the server. It will allow you to edit files inside that program pretty nicely, has nice functions for editing also. I don't do this very often, but every so often I just want to see something and it's easier that way.

Another thing I do to combat this is I tag a number inside the filename like just adding a _1 before the .html of the local file I'm about to edit, before I download the server file or in your case before you open it server side. This way if it does download it or save it locally, it won't overwrite your original local file and gives you a chance to see the difference. (haven't tried the edit part to see if it downloads it to be honest). You could tag a .bak on the end also, but if you're wanting to check comparisons of the 2 files you will end up renaming the .bak one as the HTML Editor won't open it with the .bak on the end.


I sure hope I made some sense here and something helped even a little. Good luck with it and please let me know if something isn't clear or if you need more detail or help on it :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.