mpv/player
TSaaristo 522bfe5be1 lua+js: implement utils.file_info()
This commit introduces mp.utils.file_info() for querying information
on file paths, implemented for both Lua and Javascript.

The function takes a file path as an argument and returns a Lua table /
JS object upon success. The table/object will contain the values:
mode, size, atime, mtime, ctime and the convenience booleans is_file, is_dir.

On error, the Lua side will return `nil, error` and the Javascript side
will return `undefined` (and mark the last error).

This feature utilizes the already existing cross-platform `mp_stat()`
function.
2017-12-13 21:55:28 +02:00
..
javascript js: add javascript scripting support using MuJS 2017-06-14 12:29:32 +02:00
lua Revert "ytdl: handle HLS with FFmpeg" 2017-12-07 00:46:27 -08:00
audio.c audio: fix missing volume update on init and reinit 2017-12-01 21:18:06 +01:00
client.c client: Allow "C.UTF-8" as LC_NUMERIC locale 2017-11-30 21:06:37 +02:00
client.h client API: turn mpv_suspend() and mpv_resume() into stubs 2016-11-22 15:54:44 +01:00
command.c vd_lavc: rewrite how --hwdec is handled 2017-12-01 21:11:43 +01:00
command.h build: add preliminary LGPL mode 2017-09-21 13:56:27 +02:00
configfiles.c player: change default section when loading encoding-profiles.conf 2017-07-12 13:11:14 +02:00
core.h player: use start timestamp for ab-looping if --ab-loop-a is absent 2017-12-03 22:23:24 -05:00
external_files.c player: match subtitles with language tags with --sub-auto=exact 2017-11-27 19:45:13 +01:00
external_files.h external_files: change license to LGPL 2017-06-20 14:22:10 +02:00
javascript.c lua+js: implement utils.file_info() 2017-12-13 21:55:28 +02:00
lavfi.c lavfi: fix warnings with newer libavfilter versions 2017-10-27 18:09:08 +02:00
lavfi.h audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
loadfile.c player: when loading external file, always add all track types 2017-12-07 23:48:16 -08:00
lua.c lua+js: implement utils.file_info() 2017-12-13 21:55:28 +02:00
main.c player: log if NDEBUG is defined 2017-11-04 17:48:30 +01:00
misc.c player/misc.c: allow both --length and --end to control play endpoint 2017-12-04 12:34:02 -05:00
osd.c osd: fix a compiler warning by adding parentheses in if condition 2017-12-10 17:20:58 -08:00
playloop.c player/playloop.c: fix --loop-file without --start 2017-12-05 14:36:47 -05:00
screenshot.c screenshot: create directories from template 2017-11-02 17:07:35 +01:00
screenshot.h player: make screenshot commands honor the async flag 2017-04-01 20:47:23 +02:00
scripting.c scripting: report dlerror() output 2017-12-01 21:13:48 +01:00
sub.c player: change license of most core files to LGPL 2017-06-23 16:55:02 +02:00
video.c video: add a shitty hack to avoid missing subtitles with vf_sub 2017-12-08 20:33:23 +02:00