c# - File size not showing in windows explorer -
i writing lots of files using c#. file size 1 mb , 500 files there in folder.all files written of contents. files showing file size 0 in windows explorer though has contents.
i can see size when copy files other location. can see size when open in same location , refresh windows explorer.
this propably caching problem in windows explorer. measured filesize when program created new file, before content has been written it. showing wrong (outdated) value. if can open file , see content, worked fine.
try refresh folder in windows explorer f5 or try again after time.
you can open console (cmd
), go target folder (cd path
) , take @ correct filesize using command dir
.
Comments
Post a Comment