You can get the same use-case, using a different way of doing it. I do
the same thing - I use SFTP to edit C and C++ (and Makefiles, python,
really anything) code on a remote system where I build. I'd suggest a
different way than using 'Deploy Site', which was intended to deploy a
webserver's worth of HTML files - and as such I'd say the fact it
changes timestamps is both the expected and correct behavior.

Here's what I do:

1. Create a new bbedit project. Save it where you want depending on
how you want to use it.  I happen to usually put mine in a Dropbox
folder.
2. Open the SFTP browser to the remote computer where the source files
in question are.
3. Now, drag the files you want into your project.  I happen to like
to "Add Collection..." for each subfolder in the remote project.
Dragging the folder into your project is sometimes handy, but will
result in bringing up an SFTP window when you select it instead of
"navigating" into it in your project sidebar, hence why I like to
organize via collections.
4. When you pick a file in your project sidebar, it will SFTP open in
your BBEdit window.  When you save it, the _one_file_will_be_saved_.
And hence, only that one will get the timestamp mucked with.

There's a few downsides with this, but most are similar problems you'd
have with your current method. For example, if you happen to change
the file directly on the server, your local copy you might have open
won't be notified and thus a save there will overwrite your changes.
Easily dealt with by paying attention.

Also, if you're not doing it already, you should be using version
control (I recommend Git) on your checked out code on the server side.
My expectation is your 'Deploy Site' method would interfere with
in-tree version control. But as I've never tried it, I'm unsure if it
does.

Another way to do what you want is to use NTFS or another filesharing
method. I do mostly Linux driver work, so I work with Linux and NTFS
worked very well for me until I needed to access the same code space
via VPN when on the road.  Using NTFS it would effectively look the
same as if the code were on a local path.

Additionally, setting your server up so you can type `bbedit
<filename>` on it and have it contact your Mac to have BBEdit open the
file via SFTP is a handy tool that works very well with the above
method. I won't repeat myself, but you can find several postings in
the archives where I explain how I set that up.  With other methods of
doing the same from other people.

- Steve



On Wed, May 1, 2019 at 7:02 AM Mooki Moo <[email protected]> wrote:
>
> I am using BBEdit 12.6.3 64 bit on OSX Mojave v10.14.4 to locally edit a 
> Linux C++ project. However when I 'Deploy Site' this uploads all files and as 
> a consequence means that the timestamp on these change so full build is 
> required which is not always needed.
>
> Is there anyway I can preserve the timestamps from the local files or is 
> there any way to pass a -p to the SFTP used within BBEdit?
>
> --
> Mook
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to