< Home

How Do I Check Whether an Uploaded File Is Complete?

To check whether an uploaded file is complete, you can compare the size of the file on the source and destination. Before uploading the file, check and record the file size. After uploading the file, run the dir command to check the file size in the storage medium. If the file sizes are the same, the uploaded file is complete. If they are different, the uploaded file is incomplete. In this case, run the delete command to delete the file and upload the file again.

<HUAWEI> dir /all
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-             14  Feb 27 2012 11:20:12   back_time_a
    1  -rw-             16  Dec 28 2011 13:10:56   abc.tbl
    2  drw-              -  Feb 25 2012 14:19:56   logfile
    3  drw-              -  Oct 31 2011 15:05:26   sysdrv
    4  drw-              -  Feb 25 2012 14:20:08   compatible
    5  drw-              -  Oct 31 2011 15:19:02   selftest
    6  -rw-             14  Feb 27 2012 11:20:12   back_time_b
    7  -rw-          9,637  Feb 25 2012 14:18:22   vrpcfg.cfg
    8  -rw-              4  Jan 18 2012 16:34:56   snmpnotilog.txt
    9  -rw-          1,968  Feb 25 2012 14:20:22   private-data.txt
   10  -rw-            637  Nov 04 2011 11:48:46   cacert.der
   11  -rw-          4,303  Feb 09 2012 21:16:06   vrpcfg1.cfg.bak
   12  -rw-            639  Nov 04 2011 11:49:04   rootcert.der
   13  drw-              -  Nov 04 2011 11:50:24   security
   14  -rw-             13  Nov 29 2011 20:33:40   tftp_test.txt
   15  -rw-     52,770,448  Dec 05 2011 17:00:06   basicsoft.cc
   16  -rw-     98,139,547  Jan 31 2012 16:11:52   devicesoft.cc
   17  -rw-        463,309  Jan 31 2012 15:55:40   rbsaveddata.txt

509,256 KB total (272,952 KB free)
              

Size(Byte) in the command output shows the file size.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >