noosfero | Html5VideoPlugin: extracts conversion jobs to script (!1308)
Rodrigo Souto
gitlab at mg.gitlab.com
Tue Sep 26 08:29:22 BRT 2017
Rodrigo Souto commented on a discussion on plugins/html5_video/script/video_processor_foreground.rb:
> +end
> +
> +# Watches pool dir using inotifywait
> +def watch_pool
> + IO.popen("inotifywait -r -m -e create #{POOL_DIR}") do |output|
> + output.each do |line|
> + path, events, filename = line.split
> + if events.include? 'ISDIR'
> + # A subfolder for the environment was created.
> + env_id = filename
> + else
> + # A new file was added
> + env_id = path.split('/').last
> + end
> +
> + # inotify may lose some events, so run for all files every time
Ok, then.
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1308#note_41437503
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170926/d603c616/attachment-0001.html>
More information about the Noosfero-dev
mailing list