mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-01-14 08:36:31 +00:00
Add 'progress' indicator to CopySingle function.
This commit is contained in:
parent
a8751b020f
commit
da01da14eb
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
|
||||||
out_file = FOpen(f2, "w", count);
|
out_file = FOpen(f2, "w", count);
|
||||||
if (out_file)
|
if (out_file)
|
||||||
{
|
{
|
||||||
"Copying %s to %s\n", f1, f2;
|
"Copying %s to %s ", f1, f2;
|
||||||
j = size;
|
j = size;
|
||||||
while (count > 0)
|
while (count > 0)
|
||||||
{
|
{
|
||||||
|
@ -65,6 +65,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
|
||||||
{
|
{
|
||||||
n = COPY_BUF_BLKS;
|
n = COPY_BUF_BLKS;
|
||||||
i = n << BLK_SIZE_BITS;
|
i = n << BLK_SIZE_BITS;
|
||||||
|
".";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -76,6 +77,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
|
||||||
count -= n;
|
count -= n;
|
||||||
j -= n << BLK_SIZE_BITS;
|
j -= n << BLK_SIZE_BITS;
|
||||||
}
|
}
|
||||||
|
"\n";
|
||||||
out_file->flags |= FF_USE_OLD_DATETIME;
|
out_file->flags |= FF_USE_OLD_DATETIME;
|
||||||
out_file->de.datetime = in_file->de.datetime;
|
out_file->de.datetime = in_file->de.datetime;
|
||||||
out_file->de.size = size;
|
out_file->de.size = size;
|
||||||
|
|
Loading…
Reference in a new issue