Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

70 users online



PYTHON Question

PYTHON Question

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
jchiesa

jchiesa

Neverside Newbie
Status: Offline!

PYTHON Question

Does anyone know of a module, function or any other way of solving my problem using python:

I need to come up with something that searches a list of folders for files created on or before a certain date, and deletes them. I can't figure out how to read a files attributes. I am a virgin to Python, and would be executing this script on OS X. Any thoughts would help out Greatly.

Thanks in Advance.

radford

radford

Neverside Newbie
Status: Offline!

Most people here are only knowledgeable of PHP and refuse to learn about other things. I respect you though, good to see someone trying something else than the standard PHP/MySQL stuff.

This is not a beginner's task, so you are most likely going to get an answer at a Python dedicated forum or ask for a solution in another language.

___________________

Recommended: Ruby Rails SimpleTest Propel Lighttpd

Last edited by radford, April 23rd, 2005 07:34 PM (Edited 1 times)

Waldir

Waldir

God's Son
Status: Offline!

thats kin of harsh and dirrect o.O

___________________

"The secret to creativity is knowing how to hide your sources." -- Albert Einstein

radford

radford

Neverside Newbie
Status: Offline!
Originally posted by Waldir:

thats kin of harsh and dirrect o.O

It is, but the fact is that there is truth within my statement.

___________________

Recommended: Ruby Rails SimpleTest Propel Lighttpd

Last edited by radford, April 23rd, 2005 11:48 PM (Edited 1 times)

Waldir

Waldir

God's Son
Status: Offline!

if you dont have anything nice to say about some one dont say anything at all ^_^ my mamas words :P

___________________

"The secret to creativity is knowing how to hide your sources." -- Albert Einstein

BigToach

BigToach

Neversidian
Status: Offline!

I don't see anything wrong with people wanting to learn PHP/Mysql very well. Besides I really don't think that it is a matter of refusing "other things". The server-side section of this site has, for the most part, been dedicated to PHP/Mysql development just as other sites are dedicated to certain things. It'd be like going to a car imports forum and saying that the members were ignorant for not buying US made cars.

As far as your question goes, its been a while since I have even looked at Python (because I enjoy PHP so much) so im pretty sure you can just import os then use the stat function and suck out any data that you need
http://www.python.org/doc/current/lib/os-file-dir.html
as a fairly good reference

___________________

Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!

goofygarber

goofygarber

Pants are overrated
Status: Offline!

I attempted to learn Python at one point, I actually wrote a simple tutorial on it but I never pursued it past the basics =\

___________________

http://www.goofygarber.net

chatmasta

chatmasta

The Unorthodox Idiot
Status: Offline!

Because PHP can do everything it can do and more*.

*At least for web developting.

___________________

Originally posted by blackmesa:

Okay! thats the last time i search up goatse on google

Waldir

Waldir

God's Son
Status: Offline!
Originally posted by BigToach:

I don't see anything wrong with people wanting to learn PHP/Mysql very well. Besides I really don't think that it is a matter of refusing "other things". The server-side section of this site has, for the most part, been dedicated to PHP/Mysql development just as other sites are dedicated to certain things. It'd be like going to a car imports forum and saying that the members were ignorant for not buying US made cars.

As far as your question goes, its been a while since I have even looked at Python (because I enjoy PHP so much) so im pretty sure you can just import os then use the stat function and suck out any data that you need
http://www.python.org/doc/current/lib/os-file-dir.html
as a fairly good reference

Amen!

___________________

"The secret to creativity is knowing how to hide your sources." -- Albert Einstein

Phil

Phil

with Mr. Jones
Status: Offline!

This thread isnt becoming a language vs language vs stubborn people thread, even though you want it to Smile

___________________

http://www.philbrodeur.com - Expert PHP Development and Tutorials

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0087 seconds.