-
... ; dir = p.standardizePath.withTrailingSlash; } *standardizePath { arg path; var pathName; pathName = PathName(path.standardizePath); ^if(pathName.isRelativePath, { dir ++ pathName.fullPath; }, { pathName.fullPath }) } *abrevPath { arg path; ...
-
... ; newitem = this.prPathItem(item); newitem.notNil.if{items=items.add(newitem)}; PathName( item ).isFolder.if{returnpaths=returnpaths.add(this.prPathUp(item));}; } } }{ (item.class.name.asString != "True").if{ ("PathActionMenu: item"+item.cl ...
-
+ PathName { deepFolders { var out; this.entries.do { | item | if(item.isFolder) { out = out.add(item); out = out.addAll(item.deepFolders); } }; ^out } }
-
... ~/Documents/SCBackups/" ++ Date.getDate.format("%m_%d_%Y") ++"/"; } *start { if(PathName(backupsFolder).isFolder.not, {//"folder not present, creating...".postln; ("mkdir"+ backupsFolder).unixCmd; }); if(covering == false, { kdFunc = { arg ...
-
... fAutoload { *initClass { StartUp.add({ SCMFileHelper.evaluateSourcesInDirectory(PathName(this.filenameSymbol.asString).pathOnly, "scm_synthdef_autoload.scd", false); }); } }
-
... ) */ SCMImageHelper { classvar <imagesDirectory; *initClass { imagesDirectory = PathName.new(this.filenameSymbol.asString).pathOnly; } *mixerFaderSprite { ^Image.openSVG(imagesDirectory ++ "MixerFadersSprite.svg", 50@50); } }
-
... ath), { ^path.load.value(this); }); } runFilesForFolder{ arg path, file; path = PathName(path); // if(path.folders.size > 0){ // ("-> Running "++file++" files for all modules").postln}; path.folders.do({ arg folder; this.runFile(folder, fil ...
-
... e the synthdef is written somewhere for the server to read it synthdefbinpath = PathName.tmp;// +/+ "benchSystemCmd_%_%.scsyndef".format(synthdef.name, this.hash.asString); synthdef.writeDefFile(synthdefbinpath, true); synthdefbinpath = syn ...
-
... + "downloaded-quarks" +/+ "miSCellaneous*").pathMatch; dirs = dirs.select { |p| PathName(p).isFolder and: { PathName(p +/+ "Classes").isFolder } }; withWarnings.if { case { dirs.size == 0 }{ "\nWARNING: no directory beginning with name 'miS ...
-
... r cannot be a number *loadFile { |path, key| var buffer, extension; extension = PathName(path).extension; // only proceed if file is valid (allowed extension) if(allowedExtensions.includesEqual(extension), { // if a key is not provided, use ...