开发者

how to find last part of file(with size less than block size of file system) on the disk using java?

I am working on a project where I have to find the full file or the part of files stored on disk using java. Here is what i am doing

1) divide a reference file into parts(same in size of block size of file system) and create its hash and save in database

2) for search for that reference file, I divide the disk into parts(same size of block size of file system) and create hash and then look for the match of hashes.

Now all is fine until I reach the last part of file which will most probably NOT be equal to the block size of file system. and same is the case when file was stored on the disk.so the hashes do not match of course.

So how can I find this last part of file w开发者_JAVA技巧ith size less than block size of file system?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜