Hi Patrick

thanks for reporting. I consider StepSync almost ready for release and your report worries me, loss of data is always worrying. Also, StepSync uses Foundation file operations, so if a bug comes form there, it is even worse.

Patrick Cardona wrote:



Info Panel says: 0.1 release.

How it was fetched:
svn co svn://svn.savannah.nongnu.org/gap/trunk/system-apps/StepSync

that is strange, for me info panel says 1.1



Therie is the complet log of "Analyze" action performed before "Synchronize":
patrick@pi400:~/SOURCES $ openapp StepSync
2025-10-15 13:03:07.518 StepSync[10640:10753] autorelease called without pool for 
object (0x55aab243f0) of class NSUserDefaults in thread <NSThread: 
0x55ab1706f0>{name = (null), num = 10753}
2025-10-15 13:03:07.530 StepSync[10640:10753] target missing dirs: ()
2025-10-15 13:03:07.530 StepSync[10640:10753] source missing dirs: ()
2025-10-15 13:03:07.530 StepSync[10640:10753] target missing: ()
2025-10-15 13:03:07.530 StepSync[10640:10753] source missing: ()
2025-10-15 13:03:07.530 StepSync[10640:10753] target modified: 
("A/B/C/ficC.txt")
2025-10-15 13:03:07.530 StepSync[10640:10753] source modified: ()
2025-10-15 13:03:07.530 StepSync[10640:10753] size differing files with same 
date: ()
2025-10-15 13:03:07.531 StepSync[10640:10753] date differing files with same 
size: ()
2025-10-15 13:03:07.537 StepSync[10640:10753] source free 86125.764608 MBytes, 
target free 86125.764608 MBytes

the output looks correct: nothing is missing and the only file changed is in target, so analysis looks "correct".
The log is easier to look at in the App itself, isn't it for you?

I reproduced exact your case. (just different file names).
I chanced one character in filec, my log window says:

----------------------------------------------------------
Files which are modified more recently Target than Source:
----------------------------------------------------------
A/B/C/filec.txt
Count: 1
Size: 8 Bytes

I do run update and the file disappears.

source/
`-- A
    |-- B
    |   |-- C
    |   `-- fileb.txt
    `-- filea.txt


Bug reproduced.

I check the code. Substitution is done by deleting first and then copying. Same code for source->target as target->source. It could be done safer in theory by copying, deleting, renaming, but occupying more space and I started StepSync with big files, so space was important. But if the code works in one direction, I don't understand why it doesn't in the other!




Riccardo


Reply via email to