What is the business background? Please provide a description.
in on_dvr hook, I need to move the file to a new place. I write the script in PHP.
Is your feature request related to a problem? Please describe.
when copy file got error:
{"type":2,"message":"copy(\\/data\\/srs\\/record\\/live\\/987cc704-2332-402a-963e-99177218c6a2\\/1702624496464.mp4): Failed to open stream: No such file or directory...
in fact, file exists.because file permission is -rw-r--r--, so when call function copy,file_exists,all got above error.
Describe the solution you'd like
set the default permission to 0755 or let user config it in config file
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
What is the business background? Please provide a description. in
on_dvr
hook, I need to move the file to a new place. I write the script in PHP.Is your feature request related to a problem? Please describe.
when copy file got error:
in fact, file exists.because file permission is
-rw-r--r--
, so when call functioncopy
,file_exists
,all got above error.Describe the solution you'd like set the default permission to 0755 or let user config it in config file
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.