A simple python3 mass file/dir renamer for the cli

Hi fellow archers!
I released a simple script for mass file/renaming of files; it provides some interesting feature (incremental numbering, name cleaning, use parent dir name, replace patterns) and can be used together with ranger file manager to apply it to selection.
Check it out on github!
https://github.com/andya9/pyrenamer/tree/master
(I tested it a lot and use it nearly daily on important file; but as always, try it safely first! an option to only *show* expected output is provided)

I resolved this issue. For some reason JDeveloper did not reconize the build.xml file as a valid ant build file until I closed it and re-started it.
Thanks!
etnot

Similar Messages

  • What file name is for the driver of gpib-usb-b?and how to add the driver file to vb in win2000??thanks

    what file name is for the driver of gpib-usb-b?and how to add the driver file to vb in win2000??thanks

    Hi,
    Multiple files are required for the proer fnctioning of any of our GPIB products. Unfortunatly the installation is not as simple as copying a single file over. If you wish to make the installer silent, i believe this is entirely possible in a fashion similar to the details given at http://digital.ni.com/public.nsf/websearch/0730A66245E6808086256CA8006E2183?OpenDocument.
    Hope this helps out!
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • UIXJSP App built off BC4J Project JBO Excep XML File not found for the Container

    Running JDEV 9.0.3 build 960
    Created a new project in folder "UIX JSP"
    "UIX JSP" note the space!
    Create a default UIX JSP Application based on existing BC4J Project
    When running a JSP - Get a JBO Error complaining that the XML File not found for the Container
    If I recreate the project with name UIX_JSP problem does not occur.

    I logged a bug on this.

  • XML File not found for the Container model.cpx

    I can run my application from JDeveloper without receiving the error. But when I deploy the application I get the following:
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container model.cpx     at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:751)     at oracle.jbo.uicli.mom.JUMetaObjectManager.createPool(JUMetaObjectManager.java:457)     at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:541)     at oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(BC4JRequestProcessor.java:233)     at oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(BC4JRequestProcessor.java:123)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:234)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:479)
    Any Ideas?

    Hi,
    please explicitly "make" the project. One reason for this problem could be that the model.cpx isn't created properly. Select the model project and compile the complete project before deploying it. Sometimes it helps to clear the "class" directory of the project on teh file system before re-compiling
    Frank

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

  • XML File not Found for the Container BC4J.cpx

    Hi,
    Have following error when I start a BC4J-JSP/Struts application (with Embedded and standalone OC4J) :
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container BC4J.cpx
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition(java.lang.String)
              DefinitionManager.java:751
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition()
              DefinitionManager.java:793
         void oracle.jbo.mom.DefinitionManager.initManager()
              DefinitionManager.java:137
         void oracle.jbo.uicli.mom.JUMetaObjectManager.<init>()
              JUMetaObjectManager.java:57
         oracle.jbo.uicli.mom.JUMetaObjectManager oracle.jbo.uicli.mom.JUMetaObjectManager.getJUMom()
              JUMetaObjectManager.java:131
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpContainer.findSessionCookie(javax.servlet.http.HttpSession, java.lang.String, java.lang.String, java.util.Properties)
              HttpContainer.java:541
         boolean oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(oracle.jbo.html.struts11.BC4JActionMapping, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              BC4JRequestProcessor.java:222
         org.apache.struts.action.ActionMapping oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              BC4JRequestProcessor.java:124
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:234
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1292
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:492
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    Then I make a Reload and it's ok.
    I have a Workspace with two Projects :
    BC4J.jpr for Businnes Components
    Web.jpr for JSP Struts
    In /classes I have the file Web.cpx, but no BC4J.cpx.
    From which does this name come ? Can I change this name ?
    Thanks
    Yves

    I found this on Metalink...
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    The following is from Note 137429.1. Hope this helps.
    Raja.
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    Action: 1. Make sure that the file is present. In particular, if the file is to be found in a zip/jar file, make sure that the Zip/JAR file is included in the CLASSPATH.
    2. This error is also reported if the name of the XML file does not match the object Name specified in the XML file. If the file system support case insensitive file names (e.g., Windows NT), make sure that the file name matches the object Name in the XML file in case-sensitive fashion.
    3. For a .JPX file, this error is reported if the JPX file is missing the JboProject XML tag. Check the JPX file to make sure that the valid tag is in there.
    4. One XML file may be extending another XML file (specified by the Extends element in this XML file). This error is reported if the base XML file is not found.
    5. When loading the XML file for a package (JboPackage tag), this error is reported if some unexpected error occurs while loading a containee.
    In all of the above cases, a more descriptive message may be printed on Diagnostic. If you are not seeing Diagnostic messages, you can run your application with Diagnostic turned on, as in "java -Djbo.debugoutput=console ...", to see Diagnostic messages.

  • TS3297 What do I do if music files purchased/downloaded for the iTunes store don't work properly?

    What do I do if music files purchased/downloaded for the iTunes store don't work properly?

    Buddhabeat...clicking on the "Report a Problem" button next to the song(s) in question, should open a drop-down list menu, that allows you to select the specific issue/area of concern that you are experiecing (or you can select a generic "My problem is not on the list" (or something to that effect). Underneath this drop-down menu box, there should be another message box where you can describe  the issue/problem your having. Below this message box will be a "Submit" button...clicking on that will send your message to the Apple iTunes Store Customer Support Centre (you will see a confirmation message that your message has been sent), as well as receive an email notification from the Support Centre confirming your message has been received, a case number, and that you will receive an email response pertaining to the issue/problem you're having, from the Support Centre asap (usually within 24 hours). That's how it worked for me, anyhow.

  • Which file is responsible for the BEA WL Console page

    Can anyone tell me, which file is responsible for the BEA WebLogic Server
    Administration Console web page?
    For example, the URL for the Admin Console
    http://<domainname>/console is being redirected to
    http://<domainname>/console/login/LoginForm.jsp.

    I would strongly discourage any modification of this as it would not be supported. Perhaps you should explain in more detail why you want to do this?
    The files on WLS 10.0 appear to be here:
    BEA_HOME\wlserver_10.0\server\lib\consoleapp\
    Specifically in the webapp\WEB-INF\web.xml subdirectory you can see how things are set up to redirect in the login-config element.

  • Trying to copy a 10gb file to a memory stick but theres an error msg file to large for the file format of the stick. is there a way around this

    trying to copy a 10gb file to a memory stick but there's an error msg, file to large for the file format of the stick. is there a way around this

    If you use 'Disc Utility' you can format the stick (this will erase its contents) to be exFat which will still work with Mac and Windows but allow a larger file sizes to be placed onto the stick.
    Disc Utility > Click the drive on the left > Erase (tab) > Change format to ExFat > Erase > Try putting the file on to the stick again.

  • Multiple files and locations for the same photos

    Hi all~
    Hoping someone can help me find a simple solution to my problem. I've been trying to organize my photos on my mac, and I've been taking a lot of time to create albums in iphoto and rearranging all of my files. I got a message this morning that I have little space left on my startup disk, and that I need to delete some files. I suspected immediately that it had something to do with the pictures, so as a test, I searched in Finder for a few of the photo file names, to see how many copies there were. Not surprisingly, there were MULTIPLE copies of the photos, one in my iphotos folder, another in my regular photos folder, and sometimes two in the regular folder. I also had alias files listed in my iphoto albums, but considering the size of those, they are just a link to the real photo file. Is there an easy way to get rid of the dupes, or do I just have to sit and take the time to go through them by hand? Also, is there a better way to upload photos and manage the files, so that I don't have this problem again? Any suggestions would be greatly appreciated.
    Thank you,
    Noreen

    Hi, Noreen. Whenever you import photos into iPhoto's library, they are copied (not moved) from their original locations to locations controlled and managed by iPhoto, in the iPhoto Library folder inside your account's Pictures folder. If the original picture files you imported were located on your hard drive instead of on a camera memory card, CD, or other storage media, then after the import you are storing each image twice on your hard drive: once inside and once outside your iPhoto Library. While there may be some comfort in having two copies of your photos stored that way, it's not a useful backup strategy: if your hard drive fails, both copies are apt to be lost.
    Here is a backup strategy that will enable you to recover all your pictures and albums in the event of a primary hard drive failure, and will eliminate the duplication of image files on your primary hard drive. It assumes that you want to use iPhoto to manage and organize all your pictures — an assumption that isn't valid for every user, but works for many.
    1) Identify all the images on your hard drive that you haven't yet imported into iPhoto, but that you want to save. You will have to do this manually. Make a list of all their locations as you identify them, so you'll be able to find them again quickly during step 2.
    2) Import all those images into iPhoto, and arrange them in albums to suit yourself.
    3) Copy your iPhoto Library folder to another storage medium that is large enough to hold the entire folder. Typically, this will need to be another hard drive: internal if your Mac provides space for one; external if it doesn't, or if you don't want to open up the Mac and install another internal drive. Most users' iPhoto Library folders are (or will soon become) too large to fit on a CD; many are too large to fit on a DVD. The absolutely essential point to remember is that to preserve its identity as a functional iPhoto Library, the library folder must be copied to the backup storage medium *as a single, intact unit* — copying it piecemeal or spreading it over several CDs is a path to certain disaster. The contents of that folder are interrelated in ways that only iPhoto understands. Disrupting those relationships by dividing the library into segments destroys all the work you've done to organize your pictures within iPhoto. All that work will have to be laboriously repeated if you alter or break up the structure of the backup library, and then lose your primary library to a hard drive failure or computer theft.
    4) Delete all photos from your primary hard drive that are not stored inside the iPhoto Library folder. This eliminates the storage of duplicate copies on that drive and frees up space.
    You are now committed to using iPhoto, rather than the Finder's hierarchical folder structures, for the organization and management of all your digital photos. You have no photos that are stored outside the iPhoto Library folder, and for the reasons I described at length under #3 above, you shouldn't use the Finder to meddle in any way with the contents of that folder. Everything you want to do with your pictures from now on can and should be done using the commands and preferences within iPhoto, not manually in the Finder.
    Note that the procedure outlined above will, at first, consume more disk space rather than less, as the import process makes new copies inside your iPhoto Library of photos that were formerly stored only outside it. You will later regain duplicated-storage space by deleting all externally-stored images, and if you already had a lot of duplicates before starting this process, you'll probably end up with more available disk space at the end than you have now. But if your available disk space is already minimal now, you may have to take steps to increase it before starting on the process I've outlined. This article may help you do that.
    Good luck!

  • No Planning file entry created  for the Rervation

    Hi PM Gurus,
    When we create a maintenance order, for the component the Reservation is created. The components is externally procured with the some planned delivery dates. but during the MRP run these Planned Orders are not converted to PReqs automatically. checking the planning file entry there in no planning file entry created therefore MRP has not considered it.
    Now we are using MD15 to collectively convert the Planned Orders to PReqs.
    The Item category of these spare parts are "L". Please suggest if what configurations are to be checked, maintained in order for MRP generate the PReqs from the Planned Orders.
    Thanks,
    Nag

    Hi,
    MRP does not convert planned orders into purchase requisitions. MRP creates one of the procurement proposals, planned orders or purchase requisitions, according to the parameters you run it. Check out the parameters of your MRP run, you need to select create purchase requisitions and delete old procurement proposals to fulfill your requirement.
    Regards.

  • How to upload CSV file w/o ,, for the last line

    Hi Experts,
    As part of one interface uploading the csv file (4coulmns) manually using the TCODE: CSCA_FILE_COPY.
    After uploading when i see in the AL11 as it is csv file it is filling the , in each space.
    But my issue while running the interface (because of logic in it) checking for the hash total in the last line where (record count, hash total) only 2 items should come but because of manual upload adding the (record count, hash total, , ,) another two spaces.
    Where program not moving further becasue the it is alway comparing the amounts (1000.00 not matching with 1000.00, , ) it is not processing. In production files directly load in to unix server so no issues and i can't ask to change the program code...because iam not following the process. As part of testing i've to do manually only.
    Please suggest the workaround for this.
    Is it possible to change the contents directly in AL11 directly....then HOW ?
    or
    How to create a csv file w/o , , in the last line (may be it is not possible) ?
    Thanks for your replies in advance.
    Regards
    VVR

    I don't think you can edit from AL11, nor creating a CSV without those commas at the end because are created to state fields with empty value.
    You have 6 columns filled with values but for the last line you only fill the first four. It is expected to appear , , for the last 2 columns on the last line.
    I can only suggest keep doing it manually before uploading the CSV file... or... you are saying you can't change the program.
    How about upload all CSV files... then writing another program to get those files from AL11 and delete the spare commas at the end line?
    Cheers,
    Andres.

  • Imported source file name changed for the external table

    Hi,
    I have external table from flat file. Now the source file name is changed. I can change the file location to point to the new file name, but I can't update the source for the flat file property(as seen under flat file properties,structure tab. the column "Sampled From"). Is there way to have this update without having to import the file using the new file name again?

    In the Files section in the object navigator find the flat file you want to change the source of.
    Double click on the actual file, and on the General tab change the old file name to the new one.
    The fact that it has been sampled from a different file should not 'disturb' the working of the external table.
    However, if the structure of the new file is different I'd suggest to resample.
    Good luck, Patrick

  • File too large for the stage

    Hello
    Am encountering an issue regarding the size of images I am seeking to import onto the stage in Edge.
    I create a graphic in Illustrator, save the file as an SVG file and then I import/copy the file into Edge.
    The size of the graphic is always smaller than the pixel dimension of the stage.
    But on every occasion, I encounter a notification error message just below the right hand corner of the stage; it reads 'Images greater than 1024x1024px may cause unexpected behaviour on mobile devices'.
    When I continue regardless and import my OAM file into an article in Indesign, the animation plays fine, but am concerned by why this error message continues to appear.
    I fear the animation will not play on any other mobile devices.
    Anyone aware of this issue??
    Thanks
    Sean

    Is it just text? You can place it inside a dynamic text field and simply drag a UIScrollBar component to the text field. It will automatically snap to the right by default and take control of the text scrolling for you. To open the components list, open Window || Components or press CTRL+F7.

  • Setting the file system size for the emulator

    Hi,
    I am trying to set the file system size of the emulator so I can test what happens when the system is full and I try to write to the file system. I am using WTK 2.5.1 and I went into preferences -> storage and set Storage size to 10KB. But when I run the emulator and check the available size of the root directories using:
    try {
             Enumeration roots = FileSystemRegistry.listRoots();
             while (roots.hasMoreElements()) {
                String dir = (String) roots.nextElement();
                FileConnection fc = (FileConnection) Connector.open( "file:///" + dir );
                System.out.println( "Available Size on " + dir + " : "+ fc.availableSize());
                fc.close();
          } catch ( IOException ex ) {
             ex.printStackTrace();
    }I get the remaining size of my pc's hard drive, not what is remaining from the 10KB I set.
    Can you tell me the correct way to do this? I don't want to fill up my pc's hard drive in order to test this!!

    Has anyone got an answer to this?

Maybe you are looking for

  • How to specify EPCFLevel in portalapp.xml of a wdbdynpro DC

    Hi All, Can I specify EPCF level in portalapp.xml file of webdynpro DC? I am giving existing portalapp.xml : <?xml version="1.0" encoding="UTF-8"?> <application>   <application-config>             <property name="SharingReference"    value="sap.com/t

  • Voice over: How do I read text? If the VO-Shift-Up and then VO-A don't work?

    Hi, All the Voice Over posts say stuff like When you get to a "Text Content" or "HTML Content" box, you have to "interact with" it by pressing Ctrl-Option-Shift-Down Arrow. If it doesn't immediately start reading, press Ctrl-Option-A."  (quoted from

  • APP-INV-05447 No Open Period Found For Data Entered

    Brother Hussain I am new to this forum, currently I am learning Oracle APPs, I have practicing Conversion In this I am doing Item Import Project. I have done all the process of conversion like from flat file to staging table using sqlldr, then valida

  • Combining PDFs

    How do I combine several PDFs into one PDF document?

  • Need Help with Treat Function

    Im currently studying Oracle and SQL im really stuck on this. if anyone could give me a hand it would be much appreciated. drop table Property_tab force; drop table Appointment_tab force; drop table Person_tab force; drop type view_list_type force; d