Commits

ajung  committed 94d2f52

added

  • Participants
  • Parent commits c6152b6

Comments (0)

Files changed (1)

File pp/core/resource.py

+################################################################
+# pp.core - Produce & Publish
+# (C) 2013, ZOPYX Limited, www.zopyx.com
+################################################################
+
+class ConversionResource(object):
+
+    def __init__(self, fslayer):
+        self.fslayer = fslayer
+
+    def list_resources(self, suffix=None):
+        names = self.fslayer.listdir()
+        if suffix:
+            names = [name for n in names if n.endswith(suffix)]
+        return names
+
+