ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.74k stars 5.28k forks source link

add a new option of file permission to config #3913

Closed zubin999 closed 6 months ago

zubin999 commented 6 months ago

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.

zubin999 commented 6 months ago

sorry, it's my fault. I run my script in a docker container,but I forgot to mount the path into container.

winlinvip commented 6 months ago

Thank you for your feedback. Thank you for choosing SRS.

TRANS_BY_GPT4