1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Commit Graph

95 Commits

Author SHA1 Message Date
Martin Prikryl
c3aadded64 Factoring out some commons synchronization checklist functions
Source commit: 476fef1cfeea061ec1d35cdb24b2528263eaf247
2024-12-14 01:15:01 +01:00
Martin Prikryl
e613fa29fe Bug fix: When moving an ongoing delete operation to background queue, it might attempt to delete the current file again, failing the operation
Overall, the test for cancel is probably redundant for all scenarios. But to limit impact, I'm keeping it for most scenarios, except for the delete.

Source commit: c24c339bd5c5621a74c356b8189487e35dc2ab41
2024-12-11 01:21:14 +01:00
Martin Prikryl
5deca33acf Issue 2291 – Failure when trying to automate file synchronization by checksum on an SFTP server that does not support it natively
https://winscp.net/tracker/2291

Source commit: e41184d38b7fb153931146024e6794acd2b84d12
2024-05-24 01:05:15 +02:00
Martin Prikryl
da0fc7ab56 Issue 2271 – Misplaced stored site use warning in scripting when session name is specified
https://winscp.net/tracker/2271

Source commit: 37fee417a4f1221a2bea4824f36d162a35bc3ae6
2024-03-05 01:11:30 +01:00
Martin Prikryl
e782da2c87 Issue 2260 – Failure when trying to synchronize files by checksum on server that does not support it
https://winscp.net/tracker/2260

Source commit: d23d1a3ca251922e98b128ea807f120a690fe517
2024-02-21 01:03:48 +01:00
Martin Prikryl
804ec9c9c9 Bug 52: Use file hash as criterion for synchronization
https://winscp.net/tracker/52

Source commit: 66fd353f8e26a7bd3317ee7cc4e6d15e7d6cfb52
2023-11-07 02:03:32 +01:00
Martin Prikryl
d7ceff3eea Bug 2233: Consistent behavior across protocols and protocol capabilities when duplicating remote files
https://winscp.net/tracker/2233

Source commit: 2e8369131ae6d964b6d454036c2b79472142e06e
2023-10-25 12:59:49 +02:00
Martin Prikryl
c9390ec2f8 Factoring out TSearchRecChecked::GetFilePath()
Source commit: 520a6513e98fa51aaf4bf4609dd5f187291ab035
2023-06-29 01:06:58 +02:00
Martin Prikryl
7f7427a236 Bug fix: With debug logging enabled, the echoed script commands and XML log group names miss the command name
Caused by 069aa20f

Source commit: 2692655a4bf1261b907b346c3c8d0179c70c0bd0
2023-04-21 07:09:38 +02:00
Martin Prikryl
9dcaa8a7f3 Refactoring TTerminal::ReadFile + Adding TTerminal::TryReadFile + Solving memory leak on the way
Source commit: 4a5c5634006d2bd9a1c6c4831d0e528b91ecd9ae
2023-03-24 00:54:30 +01:00
Martin Prikryl
c280d67894 Commit cb021fe3 unintentionally introduced overwrite confirmation to scripting
(cherry picked from commit b39ad55c021027cc166132bf74241f92a199d5a9)

# Conflicts:
#	source/core/Terminal.cpp

Source commit: 54c4ff8724d2a4ddcc7e5436c4442fdb0205789d
2023-01-12 01:20:47 +01:00
Martin Prikryl
c1a1f3e945 Bug 2102: Reading password from a file (also in commandline)
https://winscp.net/tracker/2102

Source commit: d289a6b641f6abdd82dd978b5b43bf14d62b915a
2022-09-22 00:58:25 +02:00
Martin Prikryl
93a1a15195 Bug 2102: Reading password from a file in scripting
https://winscp.net/tracker/2102

Source commit: 800bece84b818b09f26abf28e2ccc2d8700b3d26
2022-09-17 01:01:37 +02:00
Martin Prikryl
b4c490b497 File checksum calculation support for SCP protocol and SFTP protocol via secondary shell session using shell commands like sha256sum
Part of Bug 52
https://winscp.net/tracker/52

Source commit: 6804a5d18405a91e8d0a2e0beccf2c31d43ed3f1
2022-07-16 00:54:05 +02:00
Martin Prikryl
8994d1f98e Simplifying CalculateFilesChecksum API
There's a small side-effect: The scripting "checksum" command now prints file name only while before it printed the path as it was original specified in the command.

Source commit: 7594ed8befc67e4da3153cc8b1b711ab104db867
2022-07-14 00:57:43 +02:00
Martin Prikryl
b7dc14c954 Bug 2078: When transferring a growing file, after its original size is reached, the Session.FileTransferProgress event starts being triggered continuously
https://winscp.net/tracker/2078

Source commit: 3f6718b70e793a8d7972db88870716f18ec313cd
2022-05-21 01:00:35 +02:00
Martin Prikryl
1018b272ea Bug 2044: Provide private key as string in .NET assembly
https://winscp.net/tracker/2044

Source commit: f305e417f5775d6acfbd1d6ffb7580eefa52dbe3
2022-01-07 17:02:48 +01:00
Martin Prikryl
c5a60526ed Bug 2052: File masks relative to the root of an operation
https://winscp.net/tracker/2052

Source commit: 6c037285152e369af4f530849a09848f0b9be880
2021-12-15 01:01:06 +01:00
Martin Prikryl
0cebfe10f7 Interface for matching filenames only against a file mask
Among other to reduce confusing set of Matches overloads. Another benefit is that now all Matches overloads know, if the path is local or remote, what will be useful for upcoming relative/rooted path masks.

Source commit: a6a79218aeceb6dbc22a2ebe804effe277d43115
2021-12-09 01:15:07 +01:00
Martin Prikryl
ec22d33b1d Factoring out IsTransfer
Source commit: e6155366a5349dcbe9e487f53bd7f2710eb43ec8
2021-07-14 00:47:56 +02:00
Martin Prikryl
00daaf7b98 Memory leak
Source commit: fc7c960d0bfc21c067fae53eba3fa7b679fae8fe
2021-04-09 00:48:42 +02:00
Martin Prikryl
f0c86d64d6 Fixing invalid logic from 5ec39a0c
Source commit: b91af2210ef3df96a6a18ff829a3ced925cb4449
2021-03-17 16:42:02 +01:00
Martin Prikryl
5ec39a0c4e Generalizing Bug 1956: Some errors and information while opening a session in scripting were not logged
https://winscp.net/tracker/1956
(cherry picked from commit ae928efc1c)

Source commit: 09ab870b497a7c675c69f8ed514e17e3d5846ad8
2021-03-17 00:52:13 +01:00
Martin Prikryl
069aa20fb3 Bug 1948: Debug information is printed at the end of the scripting session when debug logging level is set even if logging is turned off
https://winscp.net/tracker/1948

Source commit: c46326e83e52349ccc6f037c18a59a85d855e099
2021-02-02 12:01:59 +01:00
Martin Prikryl
17d5e0d1e5 Bug 1916: Displaying, what directory is being read at the end of login to a server, in a tooltip
https://winscp.net/tracker/1916
(cherry picked from commit 14c15ca661)

Source commit: 992bfc506be5e4b7973aaf6ce1c5c811495cf99b
2020-11-26 16:22:04 +01:00
Martin Prikryl
dbb67622c5 Bug 71: Case-sensitive synchronization
https://winscp.net/tracker/71
(cherry picked from commit b686736604)

Source commit: 0c9278521e52c4af1d18c5de33f426c0fb1fdda0
2020-11-26 14:23:17 +01:00
Martin Prikryl
8730059803 With SFTP protocol files can be streamed from stdin in scripting (part of Bug 1738)
https://winscp.net/tracker/1738
(cherry picked from commit 6e5c55fab9)

Source commit: 09f43cc5c62848e1505e228a99baa3ad003cfff5
2020-11-26 12:01:46 +01:00
Martin Prikryl
1fa88cca2a Not calling FreeFileList for local files list.
(thanks to dynamic_cast in FreeFiles, it was not crashing)

(cherry picked from commit 6e60cf5d66)

Source commit: e587d884892c9226cf22818c22200ef331485af7
2020-11-26 11:53:39 +01:00
Martin Prikryl
cebb4e2a67 With SFTP protocol files can be streamed to stdout in scripting (part of Bug 1738)
https://winscp.net/tracker/1738
(cherry picked from commit 891e603d76)

Source commit: 3f802e465066617a548a7b73d3b4cab654553b69
2020-11-26 11:46:19 +01:00
Martin Prikryl
9d02c4f0ce Convenience method Session.RemoveFile
Source commit: c7e3a0866633669f2e08fe6516042f59707843ad
2019-12-07 01:00:41 +01:00
Martin Prikryl
55a3b5b2d6 Factoring out TOptions::Parse
Source commit: 2f534e0c3c46af8c6ef25e6a64ad5066e6432692
2019-10-11 01:02:51 +02:00
Martin Prikryl
f500b385aa Bug 150: Resolve local environment variables in initial session local path
https://winscp.net/tracker/150

Source commit: c1f9f2032c2a82e6d23d27c0bfcca0af5a95b488
2019-09-10 00:44:05 +02:00
Martin Prikryl
4c0917b517 When using a scripting console interactively, not warning about opening a session from a command-line or using a stored site
Source commit: be2b4d46dd2230a7e8b4f07f35274c0551c9bfdd
2019-09-05 01:02:22 +02:00
Martin Prikryl
a62f0274e4 Estimating time to finish directory comparison before synchronization based on previous comparisons of the same folders
Source commit: 01df1bed1a6df6d014df2151b6c9c08d3d860eb8
2019-06-27 01:08:36 +02:00
Martin Prikryl
fe24c90abb Convenience methods Session.PutFileToDirectory, Session.PutFilesToDirectory, Session.GetFileToDirectory and Session.GetFilesToDirectory
Source commit: 0f89d088a94eeeaecbc4af11862542df9ea28667
2019-06-13 01:03:53 +02:00
Martin Prikryl
5ca817de64 Bug 1731: Raw transfer settings are incorrectly processed with synchronize command
https://winscp.net/tracker/1731

Source commit: eca8afcfe8687c55c8ac7fc1e23cefe32903de8d
2019-03-30 01:33:33 +01:00
Martin Prikryl
cbebdb4ac2 Bug 1707: Optionally fail synchronization in scripting when there are no changes
https://winscp.net/tracker/1707

Source commit: 1942fab95bf18d13fd50dcc18661da5ac2ff19ff
2018-11-24 02:53:53 +01:00
Martin Prikryl
0661aaa75c Bug 1371 – Synchronization preview in .NET assembly
https://winscp.net/tracker/1371

Source commit: bce225db0a4ed8170296e09aaf659056196e90c2
2018-11-14 02:49:51 +01:00
Martin Prikryl
a16fea2f60 Typo in macro name
Source commit: c8b0f63924a2a904c3d9b5a02aef64f66f361970
2018-11-08 03:53:33 +01:00
Martin Prikryl
0d1b5aa245 Bug 1689: Configurable file name column width in script progress
https://winscp.net/tracker/1689

Source commit: a0fa156838301ba4feb5205d02d1d3db17a2fbfa
2018-10-13 02:55:33 +02:00
Martin Prikryl
78506ae1b7 Transfer settings that do not have a dedicated scripting switch or a .NET TransferSettings property can be set using -rawtransfesettings switch or TransferSettings.AddRawSettings method + Generated script/code can generate these + Tests that previously used AddRawConfiguration(@"Interface\CopyParam\...), use AddRawSettings now. + It's possible to limit number of command line parameters used for open-ended switches like -rawconfig, -rawsettings and -rawtransfesettings using syntax -switch[count] + Fixing GetFilesExcludeEmptyDirectories test (it didn't upload hidden files previously)
Source commit: 4a84ba5ed0f2f09f4815c11cb4714e0c2ef7fc12
2018-10-12 01:45:30 +02:00
Martin Prikryl
7b2f2ec2e1 Bug 1680: Synchronization summary
https://winscp.net/tracker/1680

Source commit: 5b294fd256dc9db49bae41a881d5b0c91582e16f
2018-09-21 02:32:18 +02:00
Martin Prikryl
93fc1a2807 Bug 1677: Do not fail transfer if file selected for transfer, but excluded by file mask, is deleted during operation
https://winscp.net/tracker/1677

Source commit: 88d21caaae8bbd140229a313bd8aadb159706750
2018-09-18 00:59:23 +02:00
Martin Prikryl
ddbb9d23e8 Showing overall synchronization progress on progress window and taskbar (by operations count for now only)
Source commit: ed687a18cea4487d37d881e4d669097b171f2700
2018-08-10 02:23:31 +02:00
Martin Prikryl
19f9225b37 Calculating sizes of all synchronization transfers at the very beginning and showing the sizes on checklist + Not calculating size of transfers again, if they were calculated already on the checklist
Source commit: 08ed8201139d023e0a1e0794a7c4a426d9d4ad6c
2018-08-09 01:28:02 +02:00
Martin Prikryl
8dc6b45ca8 Refactoring TTerminal::SynchronizeApply
Source commit: cca8f52763cc91cc9fe3cae2b887f01bdf04fddd
2018-08-08 01:25:56 +02:00
Martin Prikryl
dae229725f Factoring out TSearchRecSmart and TTerminal::DoAllowLocalFileTransfer + Using TSearchRec.Size instead of FindData.nFileSize*
Source commit: da32ece57151b0bd5547c383b919770bd133b8b1
2018-07-25 02:24:43 +02:00
Martin Prikryl
41f9c0137f Factoring out IsRealFile function
Source commit: 046570706e02ac13da6ecbde4c6d270637c9af56
2018-07-25 02:03:14 +02:00
Martin Prikryl
2ab220f319 Refactoring file iteration
Source commit: e7c3822390daa5727d75fc5b36c82c8c1243bfea
2018-07-24 03:26:45 +02:00
Martin Prikryl
0de5a41246 Synchronization runs on top of Synchronization checklist window for easier overview of the process
Source commit: abd7f530d22980fd0b5bdca40e3bfa1ad30c1450
2018-06-29 02:55:12 +02:00