python - Changing a read-only file -
i need change text documents. way i've been doing making new file, copying line line old file , making changes on way, saving new file old file's name. becomes problem when have read permission on file. first oserrno 30, not letting me delete old file @ end of writing. if change open command 'r+', says file not found. don't have root access. know of workaround problem?
edit: responses. guess intended behavior of read-only file...
yes, right,
can read
cannot write.
Comments
Post a Comment