osx - Java file lock in Mac OS -


file locking using java.nio package works fine windows os same program not working mac os.

i trying delete locked file in windows not deleting file. same thing trying achieve in mac os though file locked or opened filewriter/fileoutputstream, deleting file.

any suggestion issue ? bug in file lock implementation ?

thanks.

it's not bug (unless call windows bug)

locks advisory on *nix systems. nothing prevents deleting locked file except checking see if it's locked first.

in windows it's sort of same, except system commands check locks , iirc default mode opening file exclusive lock.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -