[quote=337616:@Emile Schwarz]Why are-you thinking the value returned by Folderitem.Length
is the Hard Disk Logical Length ?
(On OS X / macOS; I do not know on other OSes, but I suppose it is the same)
Hard Disk Logical Length: this is the value of the Block read / write by the hard disk. This value is a multiple of 256, and depend on the size of the Hard Disk. If this value is 4096 Bytes (on small sized hard disk), your text file will take 1 block until the number of bytes taken by the text is below 4096; add one byte and your file will takes TWO Blocks (for a single byte more
)
Here, you gives two values (579KB and 2.7MB), but you do not give us the context. In other words, these values does not have any meaning until you give us the size of the Hard Disk where they resides
Worst, you quite gave us the file logical size on disk, not the files real size (in Bytes, even if that number is 541 244 321 Bytes.
BTW: to know if I am right or wrong, just select a RAW TEXT file and Get the info about this file (select it, cmd-i) and read the size: you will see two values: the first one is in Bytes, the second is between parenthesis and use KB, MB, GB, etc. in the form
2.7 MB for example !
Aurelian:
this may be a stupid list of questions
Do you check if the file is readable / writeable ?
Is the other volume a Linux OS volume?
Do you close the file write reference(s) once the file copy is over (if needed) ?
Did you flush at Write time ?
Are-you sure the image files you copy have only a data fork (in the old times, files can have a resource fork) ?
Are-you sure the images files you copy is
really is a file (not a bundle, nor a folder, nor
whatever) ?
Are-you sure about the number of files / the # of times you go thru the loop are the same ?
(this is the well know 0-based / 1-based problem)
Last idea: Why dont you copy your files from the same hard disk, using know Source and Target folders ? So, the Hard Disk Logical Block will have the same size, and there cannot be permission problems (if your data are stored in the Documents folder for example). In that case you cannot have two sizes for the same file (or you have virus troubles or your hard disk is bad).
I know this is a lot of questions, but when you do not know what happens
one have to ask questions (and get answers).
BTW: can you make a bulk copy of a bunch of txt files (raw files, the files can have any size, but a bunch of byts will be enough). RAW TEXT files only. No RTF nor RTFD files
The idea here is to be sure about the copy of know files.
Sorry for this long answer.
Ask if I was not crystal clear.[/quote]
Hi Emile ,
Well the app is more like a Photo manager for some parts and on the local version it does copies the photos within Documents folder you will have Documents -> DataFolder -> Import Photos to Documents ->DataFolder -> Client -> ClientID - > Photos .
In the server version i have 2 options, either mac server where the data gets stored on a shared drive on mac, or on a shared drive on a linux machine with avahi and the packages to make it like time capsule.
all those can be specially for the client - server can be in the same place or over a vpn connection so imagine de speeds , headache, and so on.
can you give me more details about [quote]Do you close the file write reference(s) once the file copy is over (if needed) ?
Did you flush at Write time ?
[/quote]
Thanks.