pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ignoring dot directories

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo
 View previous topic :: View next topic  
Author Message
drllama



Joined: 18 Feb 2008
Posts: 2

PostPosted: Mon Feb 18, 2008 8:08 pm    Post subject: Ignoring dot directories Reply with quote

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
View user's profile Send private message
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 412
Location: Los Angeles, CA

PostPosted: Mon Feb 18, 2008 10:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 412
Location: Los Angeles, CA

PostPosted: Mon Feb 18, 2008 11:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
drllama



Joined: 18 Feb 2008
Posts: 2

PostPosted: Tue Feb 19, 2008 7:29 am    Post subject: Like a charm, it works! Reply with quote

Thanks for the quick turn-around, it worked perfectly!

Cheers,
Bruce
Back to top
View user's profile Send private message
TreborPugly



Joined: 04 Jan 2008
Posts: 52

PostPosted: Tue Feb 19, 2008 8:40 am    Post subject: Reply with quote

krkeegan wrote:


---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.


I would think this is a very minor need for Windows systems. Hidden folders and files will be sitting in System directories, not your Video folders. Using the Windows "hidden" toggle isn't a very good way to do file management in your personal folders.


(The only time I've ever seen video files in a hidden folder was on a machine that had been taken over by a trojan and was doing bit torrent downloads and storing them in a bogus Recycle bin Very Happy)
Back to top
View user's profile Send private message
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 412
Location: Los Angeles, CA

PostPosted: Tue Feb 19, 2008 9:46 am    Post subject: Reply with quote

TreborPugly wrote:
I would think this is a very minor need for Windows systems.
Yeah I agree and it will probably end up that way anyways. It just seemed unfair not to support a similar feature on windows systems Razz .
Back to top
View user's profile Send private message Visit poster's website
philhu



Joined: 04 Jan 2008
Posts: 121

PostPosted: Tue Feb 19, 2008 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Tue Feb 19, 2008 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Royal2000H



Joined: 23 Feb 2008
Posts: 5

PostPosted: Sun Feb 24, 2008 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 412
Location: Los Angeles, CA

PostPosted: Sun Feb 24, 2008 8:41 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ebf



Joined: 21 Mar 2008
Posts: 60

PostPosted: Mon Dec 08, 2008 4:20 pm    Post subject: Reviving thread... Hide hidden folders in Windows? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.3234s ][ Queries: 13 (0.2072s) ][ Debug on ]