|
From: Linus W. <lin...@gm...> - 2008-02-19 08:34:43
|
2008/2/19, Ali Shah <ca...@gm...>: > Would anyone know if some devices distinguish file's from tracks insofar as > they give them different object IDs? I've never seen this. In the protocol, files, movies and music tracks are just the same, they are "objects", the only difference is the kind of metadata you can tag them with, depending on "object type" == "file type". > So for example if I upload a track "xyz.mp3" does mtp-files show xyz as a > file? mtp-files show all "objects" (== "files") on the device, including any MP3 files and movies and whathaveyou. > if so does it have the same ID as when xyz.mp3 shows up using > mtp-tracks? Yes. You can even use the file interface to manipulate it as a file, while you have to use the track interface to manipulate its metadata. We've thought about adding a "movie" abstraction too... The distinction is not from the file extension, whereas "sendfile" will certainly check the file extension to see what file type to tag this file with, but this is just an heuristic. The file type is a piece of metadata attached to the actual file, just like the Linux desktops and internet servers tag files with a MIME type. Linus |