简体   繁体   中英

java symbolic file link has zero size

I have a program which creates a lot of file-links (just some links, which may point at their real files on the filesystem). These symbolic links have a file size of "0".

What can I do to create a symbolic file link which has a file-size so it is not handled as "empty" file?

My script searches for empty folders and deletes also the symbolic link files by mistake.

Is there any best practice to handle this? Or is it better to create a .lnk file (I don't know how...)?

You could either

a) change the file system by downloading the source and building your own version of the kernel.

b) only delete empty files which are not symbolic links.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM