Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to retrieve internal document types by inferred extension #2

Open
tvierling opened this issue Aug 11, 2013 · 1 comment

Comments

@tvierling
Copy link
Owner

So, for a Google Document or Spreadsheet with name "docname", if the user attempts to open "docname.docx" or "docname.xls" or "docname.pdf", the MIME type will be inferred and trigger an export.

The entries should not show up in directory listings, because stat.st_size is not yet known until the export happens. These would effectively be hidden "files" that must be retrieved by name.

@tvierling
Copy link
Owner Author

Open question: whether [l]stat() on docname.EXT should succeed. Most programs will likely want this to work, as not all of them use fstat() to get the file size after opening it. This would imply that such a call would trigger an export into the local cache.

Perhaps via a mount option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant