Skip to content

Commit

Permalink
Updated to version 0.2.2
Browse files Browse the repository at this point in the history
Main update is to "path.py", adding canceler compatibility to the `getall` function
  • Loading branch information
TheElementalOfDestruction authored Oct 30, 2018
1 parent 06ca209 commit 5f76821
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion creatorUtils/path.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os;
from creatorUtils import canceler;
from creatorUtils.compat.types import *;
from creatorUtils.compat import progress_bar as pb;

Expand Down Expand Up @@ -39,7 +40,7 @@ def get_long_path_name(input):
def get_short_path_name(input):
return input;

def getall(inp, specExt = True, ext = ['msg'], extsep = '.', progressBar = None, onerror = None):
def getall(inp, specExt = True, ext = ['msg'], extsep = '.', progressBar = None, onerror = None, _canceler = canceler.FAKE):
"""
Return format:
PathTable, NameTable, outPath
Expand Down Expand Up @@ -76,6 +77,8 @@ def getall(inp, specExt = True, ext = ['msg'], extsep = '.', progressBar = None,
isfile = True;
try:
while True:
if _canceler.get():
return;
current = iterator.next();
isfile = False;
for x in current[2]:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name = "creatorUtils",
version = "0.2.1",
version = "0.2.2",
author = "The Elemental of Creation",
author_email = "[email protected]",
description = "creatorUtils main package",
Expand Down

0 comments on commit 5f76821

Please sign in to comment.