usr bin python coding utf-8 Copyleft 2008 GFORGX gforgx gmail com impo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyleft (c) 2008 GFORGX <gforgx@gmail.com>
import os
from shutil import move
for file in os.listdir(os.curdir):
if file.startswith(' '):
if not os.path.exists(file[1:]):
move(file, file[1:])
else:
print 'File exists'