echo eklendi...
This commit is contained in:
@@ -37,6 +37,17 @@ def makedirs(destinationDirectory):
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def echo(destionationFile, content):
|
||||||
|
if can_access_file(destionationFile):
|
||||||
|
try:
|
||||||
|
f = open(destionationFile, 'a')
|
||||||
|
f.write("%s\n" % content)
|
||||||
|
f.close()
|
||||||
|
except IOError:
|
||||||
|
ctx.ui.error('\n!!! ActionsAPI [echo]: Can\'t append to file...\n')
|
||||||
|
else:
|
||||||
|
ctx.ui.error('\n!!! ActionsAPI [echo]: File doesn\'t exists...\n')
|
||||||
|
|
||||||
def chmod(sourceFile, mode = 0755):
|
def chmod(sourceFile, mode = 0755):
|
||||||
'''change the mode of sourceFile to the mode'''
|
'''change the mode of sourceFile to the mode'''
|
||||||
for file in glob.glob(sourceFile):
|
for file in glob.glob(sourceFile):
|
||||||
|
|||||||
Reference in New Issue
Block a user