0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00
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
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
command.c vd_lavc: rewrite how --hwdec is handled 2017-12-01 21:11:43 +01:00
command.h
configfiles.c
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
javascript.c lua+js: implement utils.file_info() 2017-12-13 21:55:28 +02:00
lavfi.c
lavfi.h
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.h
scripting.c scripting: report dlerror() output 2017-12-01 21:13:48 +01:00
sub.c
video.c video: add a shitty hack to avoid missing subtitles with vf_sub 2017-12-08 20:33:23 +02:00