NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Hide files that don't extensions


Joined: 28 Mar 2016
Posts: 1
Reply with quote
Maybe I'm a little dense or something, but I don't see a way to hide files that reside on the remote server, that I don't want to download on syncing. I know you can hide files you don't want to download by adding them to the hide files box with a mask, such as *.jpg, for instance. However, I have a TON of extension-less files on the server, that I don't want on my local machine. For instance, error_log files. How can I hide these so they don't get downloaded to my local machine?

Thanks!
View user's profileFind all posts by sharryhSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Many hosting configurations have something like a httpdocs directory for each site at the same level as logs, statistics, error_docs and other hosting related files.

So then you would set your FTP to reference the sites httpdocs directory and skip all of those other directories.

Code:
hosting_root
    site1
        error_docs
        logs
        httpdocs
    site2
        error_docs
        logs
        httpdocs


If you are pointing your FTP at either hosting_root or site1/site2 then you would include files you probably do not want.

If your files are extensionless and you have tons of them then maybe they should really have extensions or some common naming so they can be identified/hidden using wildcards, or instead place them into directories that can be hidden. The only other alternative is to hide every file by its full name, but that sounds very tedious and maybe not possible.

For example, Magento keeps most of its variable data in a directory called var and log files in var/log so I can hide either of those in the project properties (Project > Content > Hide files / Hide directories) to stop those files being synced. PhpED does not need those files for any code insights, so hiding the var directory does not give any problems.
View user's profileFind all posts by plugnplaySend private message
Hide files that don't extensions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic