Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 19th, 2012, 09:06 AM
TylerB24890 TylerB24890 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 4 TylerB24890 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 55 sec
Reputation Power: 0
File Management Application

Hi there everyone,

I am new to these forums, although I have been programming for a few years now. I mainly develop with PHP for the web, but recently I have been studying Python not only for web development, but for simple application development as well.

I am getting ready to start a small project that will serve as a file management system for my desktop and my business partners desktop. The goal of this project is to automatically store downloaded file locations to a MySQL database running locally so that the files can be looked up in the database in the future. The program will also allow us to manually enter in file names and their locations as well.

The main question I have regarding this project is how will I go about activating the database query automatically when a file is downloaded to the pc? Is there a way to have this program automatically do its functions (as stated above) every time a file is downloaded to the system?

Thanks for your help!

Reply With Quote
  #2  
Old September 19th, 2012, 09:31 AM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,372 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 11 h 39 m 38 sec
Reputation Power: 383
You could write a program that runs forever. Every time interval it inspects the directory for new files, and deals with the new ones. I hate this polling approach.

Use a file system with which you can register your program. It would trigger your program execution when it stores a new file.
__________________
[code]Code tags[/code] are essential for python code!

Reply With Quote
  #3  
Old September 19th, 2012, 11:26 AM
TylerB24890 TylerB24890 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 4 TylerB24890 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by b49P23TIvg
You could write a program that runs forever. Every time interval it inspects the directory for new files, and deals with the new ones. I hate this polling approach.

Use a file system with which you can register your program. It would trigger your program execution when it stores a new file.


Any suggestions for such a file system?

Reply With Quote
  #4  
Old September 19th, 2012, 12:00 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,372 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 11 h 39 m 38 sec
Reputation Power: 383
I'm sure it's possible with the hurd.

I searched, briefly, for
file system and (callback or hook)
to get you started.

There might---must---be kernel or file system hooks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > File Management Application

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap