|
| Author |
Message |
drllama
Joined: 18 Feb 2008 Posts: 2
|
Posted: Mon Feb 18, 2008 8:08 pm Post subject: Ignoring dot directories |
|
|
First, lemme start with a massive thumbs-up for pyTivo!
I've been toying with the idea of building a media center, but my two Series 2 boxes have kept me from getting serious about it. I'm one massive step closer now, and now I have one common repository for video that's on my iPod and video that's available for the TiVo. Brilliant!
One minor nit to pick though.
I have a linux box that is serving AFP (Apple Filing Protocol) to my PowerBook where I have iTunes and I sync my iPod. For those that don't know, Apple's filesystems have two forks for each file. In essence, there are two files actually present for every named object in the filesystem. Netatalk on Linux handles this by creating a directory called .AppleDouble in every directory where AFP has touched.
This is causing some minor ugliness on the TiVo, as pyTivo simply lists everything in a directory including dot-files.
Given the Unix convention that dot-files are treated as invisible by default, can pyTivo by default also filter out dot-files?
Thanks!
Bruce. |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Mon Feb 18, 2008 10:37 pm Post subject: |
|
|
hmm, yeah should probably ignore windows hidden folders and files too.
I would add as an enhancement ticket, but it looks like armooo.net has been brought down by spammers again. |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Mon Feb 18, 2008 11:18 pm Post subject: |
|
|
Ok all fixed and added to my repository.
http://repo.or.cz/w/pyTivo/krkeegan.git
It is a pretty simple change in plugin.py. If you look at the most recent commitdiff you can likely do it yourself.
---Challenge to anyone out there----
How can i determine if a file or folder is hidden in windows, WITHOUT using pywin32 or win32file? I would rather not have to force users to download pywin32 only for this.
I figure I could first determine if we are in windows and then use something like os.system('dir') and parse the result. But this seems very error prone and slow. |
|
| Back to top |
|
 |
drllama
Joined: 18 Feb 2008 Posts: 2
|
Posted: Tue Feb 19, 2008 7:29 am Post subject: Like a charm, it works! |
|
|
Thanks for the quick turn-around, it worked perfectly!
Cheers,
Bruce |
|
| Back to top |
|
 |
TreborPugly
Joined: 04 Jan 2008 Posts: 52
|
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 121
|
Posted: Tue Feb 19, 2008 10:06 am Post subject: |
|
|
You get hidden files in Windows and files that start with 'dot' when you run some programs.
Tunebite does this to remember where it was in processing its files.
Also, on windows, that stupid thumbs.db file can be horked. |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Tue Feb 19, 2008 11:33 am Post subject: |
|
|
| philhu wrote: | You get hidden files in Windows and files that start with 'dot' when you run some programs. |
Only the ones that were ported from *nix, I'll wager... _________________ My pyTivo fork |
|
| Back to top |
|
 |
Royal2000H
Joined: 23 Feb 2008 Posts: 5
|
Posted: Sun Feb 24, 2008 12:35 am Post subject: |
|
|
i think even if you don't do "hidden" folders in windows... you should still support the .folder being hidden in windows too...
sure it's not actually hidden in windows, but if I wanted to hide something from my tivo, i can rename it |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Sun Feb 24, 2008 8:41 am Post subject: |
|
|
| That is supported. If you name a file or folder starting with a dot in windows it will not show up in pyTivo. |
|
| Back to top |
|
 |
ebf
Joined: 21 Mar 2008 Posts: 60
|
Posted: Mon Dec 08, 2008 4:20 pm Post subject: Reviving thread... Hide hidden folders in Windows? |
|
|
I just installed wgw's 2008-10-15 version. And I happened to change one of my shares to start at the root of a drive at the same time. Now when I browse this share I see two folders that are otherwise hidden in Windows: RECYCLER and System Volume Information. I searched through this forum and this thread seems closest to my issue. Is there any way to hide these hidden folders from pyTiVo?
Thanks. |
|
| Back to top |
|
 |
|