[SOLVED] Files in the /tmp directory are being deleted

Hi,
I've been using Arch Linux for four weeks, but have now come across a problem which I can't fix after trying to search for a solution (and also checking to see if anyone also had the same problem). I would appreciate any help you can give.
A few days ago the web browsers I use (chromium and opera) lost their profile settings, and I had to set the profiles. This kept happening and the indicator of the problem was that I use profile-sync-daemon for both web browsers, which uses the /tmp directory. I then started noticing that a file I created in /tmp disappeared which pointed me to the fact that something was cleaning up the /tmp directory (this seems to happen hourly).
A quick search led me to systemd-tmpfiles and the /usr/lib/tmpfiles.d/tmp.conf file. I have not modified the file, and if I have read it correctly only files in the /tmp directory that are more than 10 days old are deleted. I boot every day, so no files should be deleted by systemd-tmpfiles (unless I've misunderstood tmpfiles.d).
Here is the tmp.conf file anyway:
$ cat /usr/lib/tmpfiles.d/tmp.conf
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See tmpfiles.d(5) for details
# Clear tmp directories separately, to make them easier to override
d /tmp 1777 root root 10d
d /var/tmp 1777 root root 30d
# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-*
x /var/tmp/systemd-private-*
X /tmp/systemd-private-*/tmp
X /var/tmp/systemd-private-*/tmp
The /etc/tmpfiles.d directory is empty, so /usr/lib/tmpfiles.d is the only location for the tmpfiles.d config files:
$ ls /etc/tmpfiles.d/
$
Here is the list of packages I upgraded/installed for the last few days. systemd 207-3 seems the likeliest candidate, but I have not come across any reports about the problem I am having.
[2013-09-17 19:30] [PACMAN] Running 'pacman -Syu'
[2013-09-17 19:30] [PACMAN] synchronizing package lists
[2013-09-17 19:30] [PACMAN] starting full system upgrade
[2013-09-17 19:34] [PACMAN] upgraded bluez-utils (5.7-1 -> 5.8-1)
[2013-09-17 19:34] [PACMAN] upgraded cogl (1.14.0-4 -> 1.14.0-5)
[2013-09-17 19:34] [PACMAN] upgraded dbus (1.6.12-1 -> 1.6.14-1)
[2013-09-17 19:34] [PACMAN] upgraded dialog (1.2_20130523-2 -> 1.2_20130902-1)
[2013-09-17 19:34] [PACMAN] installed efivar (0.6-1)
[2013-09-17 19:34] [PACMAN] upgraded efibootmgr (0.6.0-3 -> 0.6.0.138.1132342-1)
[2013-09-17 19:34] [ALPM-SCRIPTLET] Generating locales...
[2013-09-17 19:34] [ALPM-SCRIPTLET] en_GB.UTF-8... done
[2013-09-17 19:34] [ALPM-SCRIPTLET] Generation complete.
[2013-09-17 19:35] [PACMAN] upgraded glibc (2.18-3 -> 2.18-4)
[2013-09-17 19:35] [PACMAN] upgraded gnome-desktop (1:3.8.3-2 -> 1:3.8.4-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-color-manager (3.8.2-1 -> 3.8.3-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-settings-daemon (3.8.4-2 -> 3.8.5-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-control-center (3.8.4.1-2 -> 3.8.5-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-themes-standard (3.8.3-1 -> 3.8.4-1)
[2013-09-17 19:35] [PACMAN] upgraded libpng (1.6.3-1 -> 1.6.5-1)
[2013-09-17 19:35] [PACMAN] upgraded libusbx (1.0.16-2 -> 1.0.17-1)
[2013-09-17 19:35] [PACMAN] upgraded linux-firmware (20130725-1 -> 20130903-1)
[2013-09-17 19:35] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2013-09-17 19:35] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Starting build: 3.11.1-1-ARCH
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Starting build: 3.11.1-1-ARCH
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2013-09-17 19:35] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-09-17 19:35] [PACMAN] upgraded linux (3.10.10-1 -> 3.11.1-1)
[2013-09-17 19:35] [PACMAN] upgraded openssh (6.2p2-1 -> 6.3p1-1)
[2013-09-17 19:35] [PACMAN] upgraded orc (0.4.17-1 -> 0.4.18-1)
[2013-09-17 19:35] [ALPM-SCRIPTLET]
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> The file /etc/sysctl.conf has been removed from this
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> package, as all its settings are now kernel defaults.
[2013-09-17 19:35] [ALPM-SCRIPTLET]
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> If you had customized it, you need to rename it as
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> /etc/sysctl.d/99-sysctl.conf since from version 207 on
[2013-09-17 19:35] [ALPM-SCRIPTLET] ==> systemd only applies settings from /etc/sysctl.d/* .
[2013-09-17 19:35] [ALPM-SCRIPTLET]
[2013-09-17 19:35] [PACMAN] upgraded procps-ng (3.3.8-2 -> 3.3.8-3)
[2013-09-17 19:35] [PACMAN] upgraded raptor (2.0.9-2 -> 2.0.10-2)
[2013-09-17 19:35] [PACMAN] upgraded xorg-xinput (1.6.0-1 -> 1.6.1-1)
[2013-09-17 19:36] [PACMAN] Running 'pacman --color auto -U /tmp/yaourt-tmp-dsana/PKGDEST.u70/profile-sync-daemon-5.40.1-1-any.pkg.tar.xz'
[2013-09-17 19:36] [PACMAN] upgraded profile-sync-daemon (5.40-1 -> 5.40.1-1)
[2013-09-18 20:35] [PACMAN] Running 'pacman -Syu'
[2013-09-18 20:35] [PACMAN] synchronizing package lists
[2013-09-18 20:35] [PACMAN] starting full system upgrade
[2013-09-18 20:35] [ALPM] warning: /etc/systemd/journald.conf installed as /etc/systemd/journald.conf.pacnew
[2013-09-18 20:35] [ALPM-SCRIPTLET] ==> systemd 205 restructures the cgroup hierarchy and changes internal
[2013-09-18 20:35] [ALPM-SCRIPTLET] protocols. You should reboot at your earliest convenience.
[2013-09-18 20:35] [ALPM-SCRIPTLET] ==> The "timestamp" hook for mkinitcpio no longer exists. If you used
[2013-09-18 20:35] [ALPM-SCRIPTLET] this hook, you must remove it from /etc/mkinitcpio.conf. A "systemd"
[2013-09-18 20:35] [ALPM-SCRIPTLET] hook has been added which provides this functionality, and more.
[2013-09-18 20:35] [PACMAN] upgraded systemd (204-3 -> 207-3)
[2013-09-18 20:35] [PACMAN] upgraded systemd-sysvcompat (204-3 -> 207-3)
[2013-09-18 20:35] [PACMAN] upgraded udisks2 (2.1.0-3 -> 2.1.1-1)
[2013-09-19 20:46] [PACMAN] starting full system upgrade
[2013-09-19 20:48] [PACMAN] Running 'pacman -Rns psd'
[2013-09-19 20:48] [PACMAN] Running 'pacman -Rns profile-sync-daemon'
[2013-09-19 20:48] [PACMAN] removed profile-sync-daemon (5.40.1-1)
[2013-09-19 20:48] [PACMAN] removed rsync (3.0.9-6)
[2013-09-19 20:49] [PACMAN] Running 'pacman -Rns chromium'
[2013-09-19 20:49] [PACMAN] Running 'pacman -Syu'
[2013-09-19 20:49] [PACMAN] synchronizing package lists
[2013-09-19 20:49] [PACMAN] starting full system upgrade
[2013-09-19 20:50] [PACMAN] upgraded chromium (29.0.1547.65-1 -> 29.0.1547.76-1)
[2013-09-19 20:50] [PACMAN] upgraded xvidcore (1.3.2-1 -> 1.3.2-2)
[2013-09-19 20:58] [PACMAN] Running 'pacman --color auto -U /tmp/yaourt-tmp-dsana/PKGDEST.ZDK/chromium-pepper-flash-stable-2:11.8.800.170-1-x86_64.pkg.tar.xz'
[2013-09-19 20:58] [PACMAN] upgraded chromium-pepper-flash-stable (2:11.8.800.97-1 -> 2:11.8.800.170-1)
EDIT: journalctl doesn't show me anything interesting, other than the fact that chromium complains when it realizes that its profile data has gone missing.
Last edited by dsana123 (2013-09-21 16:02:48)

I think I have found the problem.
There was a gnome update earlier in the week. gnome-settings-daemon runs an hourly housekeeping job. I had set the "Automatically Purge Temporary Files" in the Privacy tab when setting up my laptop last month.
gnome-settings-daemon has decided to delete files in the /tmp directory (I can trigger this by clicking "Purge Temporary files" which then deletes my files in the /tmp directory). This does not happen in the previous gnome-settings-daemon. Anyway, I'll mark the thread SOLVED if my file in the /tmp directory survives the hour!
[2013-09-17 19:35] [PACMAN] upgraded gnome-desktop (1:3.8.3-2 -> 1:3.8.4-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-color-manager (3.8.2-1 -> 3.8.3-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-settings-daemon (3.8.4-2 -> 3.8.5-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-control-center (3.8.4.1-2 -> 3.8.5-1)
[2013-09-17 19:35] [PACMAN] upgraded gnome-themes-standard (3.8.3-1 -> 3.8.4-1)

Similar Messages

  • HT4847 my backup file is too big?  how can i change some of the items that are being backed up to decrease size?

    my backup file is too big?  how can i change some of the items that are being backed up to decrease size?

    In iPhoto, Select All the Photos you want to move... Then goto  > File > Export >
    Choose the settings as seen here
    Click Export and select your External Drive
    Best to create a Folder to put them in... and away you go...

  • Deleting all files in the Unix directory

    I was trying to create a DB in Unix. I had to remove all the files in the udump directory and I saw that there were files in thousands. I was trying to find a command to remove all of them to make the directory empty, so that I could create the udump file for Database creation. However, I couldn't find a command to remove all of them at once. I tried to google but evey website speaks about just these commands..
    rm filename
    or
    rm -r * directory_name
    This doesn't solve my problem as these commands are deleting one file at a time and not all the files at once within the directory. Can someone tell me the solution?

    Hi,
    First go to the directory where you want to delete all the files and folders. then
    rm -fr directory_name
    rm -r is not neccessary that it will delete the files and folder.
    thx
    pradeep

  • The patch directory area must be a number. - 10.1.3 R12

    Hi,
    I am running an R12 vision instance. I need to apply a patch but whenever I try I get the error "The patch directory area must be a number.".
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ pwd
    /tmp/stage/15929270
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ ls README*
    README.html  README.txt
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ echo $ORACLE_HOME
    /oracle/r12/VIS121/apps/tech_st/10.1.3
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ which opatch
    /oracle/r12/VIS121/apps/tech_st/10.1.3/OPatch/opatch
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ opatch apply
    Oracle Interim Patch Installer version 1.0.0.0.64
    Copyright (c) 2011 Oracle Corporation. All Rights Reserved..
    Oracle recommends you to use the latest OPatch version
    and read the OPatch documentation available in the OPatch/docs
    directory for usage. For information about the latest OPatch and
    other support-related issues, refer to document ID 293369.1
    available on My Oracle Support (https://myoraclesupport.oracle.com)
    Oracle Home           : /oracle/r12/VIS121/apps/tech_st/10.1.3
    Oracle Home Inventory : /oracle/r12/VIS121/apps/tech_st/10.1.3/inventory
    Central Inventory     : /home/r121/oraInventory
       from               : /etc/oraInst.loc
    OUI location          : /oracle/r12/VIS121/apps/tech_st/10.1.3/oui
    OUI shared library    : /oracle/r12/VIS121/apps/tech_st/10.1.3/oui/lib/linux/liboraInstaller.so
    Java location         : /oracle/r12/VIS121/apps/tech_st/10.1.3/jre/1.4.2/bin/java
    Log file location     : /oracle/r12/VIS121/apps/tech_st/10.1.3/.patch_storage/<patch ID>/*.log
    The patch directory area must be a number.
    ERROR: OPatch failed because of problems in patch area.
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ cat /etc/oraInst.loc
    inventory_loc=/home/r121/oraInventory
    #inventory_loc=/oracle/r12/EM_Agent/oraInventory
    inst_group=dba
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ cat ~/oraInventory/ContentsXML/
    comps.xml      inventory.xml  libs.xml
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ cat ~/oraInventory/ContentsXML/inventory.xml
    <?xml version="1.0" standalone="yes" ?>
    <!-- Copyright (c) 2002 Oracle Corporation. All rights Reserved -->
    <!-- Do not modify the contents of this file by hand. -->
    <INVENTORY>
    <VERSION_INFO>
       <SAVED_WITH>10.1.0.6.0</SAVED_WITH>
       <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
    </VERSION_INFO>
    <HOME_LIST>
    <HOME NAME="VIS121_DB__oracle_r12_VIS121_db_tech_st_11_1_0" LOC="/oracle/r12/VIS121/db/tech_st/11.1.0" TYPE="O" IDX="1"/>
    <HOME NAME="VIS121_WEBOH__oracle_r12_VIS121_apps_tech_st_10_1_3" LOC="/oracle/r12/VIS121/apps/tech_st/10.1.3" TYPE="O" IDX="2"/>
    <HOME NAME="VIS121_WEBOH__oracle_r12_VIS121_apps_tech_st_10_1_2" LOC="/oracle/r12/VIS121/apps/tech_st/10.1.2" TYPE="O" IDX="3"/>
    </HOME_LIST>
    </INVENTORY>
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $
    Can anyone help me here? I've tried re-downloading the patch, doing it with another patch etc but always the same. I am uploading the zip file to the server and unzipping using "unzip p....".
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $ uname -a
    Linux ebs121-vm.us.oracle.com 2.6.18-164.11.1.0.1.el5 #1 SMP Wed Jan 20 01:49:42 EST 2010 i686 i686 i386 GNU/Linux
    VIS121 r121@ebs121-vm /tmp/stage/15929270 $
    Thanks!

    Hi,
    There seems to be couple of reasons for this:
    -This problem indicates that the patch is not extracted properly.
    The patch was unzipped on a pc and transferred over to the server box.
    The problem can also occur if the downloaded patch is corrupted .
    -Opatch was not run from the correct patch directory. Once the patch is unzipped, the patch is then stored in the following example location:
    \patches\p123456_9042_WINNT\123456\123456
    Make sure that the patch location has write permissions to the user that is performing the patching.
    Thanks,
    Sharmela

  • Cannot open the file because the open options are incorrect

    I'm trying to iterate through a folder of images, open each one of them, duplicate them into another photoshop file and close the individual image. This code works great on a PC (Photoshop CS3), but when I run it on our macs (Photoshop CS3) I will receive the following error on random images. "Error: Cannot open the file because the open options are incorrect" Does anyone know how to solve this problem? I've read about possibly setting the OpenDocumentType but have not seen an example anywhere. This error will sometimes occur after loading in one image or sometimes after 20 images. Sometimes I run it on the same directory multiple times all with various points of error. Sometimes every images is loaded. Any help would be much appreciated. Sample code is below.
    i //CODE BELOW
    i //allows the user to select an folder full of images
    b var inputFolder = Folder.selectDialog("Select a folder that contains the files you want added as layers.");
    b var fileList = inputFolder.getFiles();
    b var tempRef = app.open(tempName);
    b for (var i = 0; i < fileList.length; i++)
    b {
    b var tempName = fileList[i];
    b var tempStringName = fileList[i].toString();
    i //used to check if the file in the directory does in fact contain the .png extension
    b var reducedFileName = tempStringName.substring(tempStringName.lastIndexOf("/")+1);
    b if(reducedFileName.substring((reducedFileName.length - 4),(reducedFileName.length)) != ".png" || reducedFileName.substring((reducedFileName.length - 4),(reducedFileName.length)) != ".PNG")
    b {
    i //setting reference to opened docuement PNG file
    i //This seems to be the section throwing the error. Surrounding with Try Catch revealse the Error noted above
    b var tempRef = app.open(tempName);
    i //setting a tempName variable to the PNG file name
    b var tempName = app.activeDocument.name;
    i //setting reference to the active layer in the file
    b var graphicLayer = app.activeDocument.activeLayer;
    i //setting the PNG layer name to the PNG file
    b tempRef.layers[0].name = tempName;
    i //duplicating the image onto the opened Photoshop file
    b tempRef.layers[0].duplicate(backRef);
    i //closing the original PNG file without saving
    b tempRef.close(SaveOptions.DONOTSAVECHANGES);
    b }
    b }

    It looks as if the folder contains non Photoshop files, one way around the problem would be to change
    var fileList = inputFolder.getFiles();
    To specify the file types you want to process IE:
    var fileList = inputFolder.getFiles(/\.(jpg|tif|psd|crw|cr2|nef|dcr|dc2|raw)$/i);

  • How would I create a set of folders in the /tmp directory using AS?

    I have a set of folders that whenever I restart my machine they get removed (they're in the /tmp directory as they are temporary cache files).
    Right now I'm manually re-creating those folders whenever I restart.
    So how could I automatically create the set of folders on startup?
    I need to create:
    /tmp/fcgi_ipc/
    /tmp/fcgi_ipc/dynamic/
    I figure I can create an bit of AppleScript and set it to run on startup...but I'm totally clueless on exactly what that AppleScript needs to be.
    I've tried various "make new folder at ____" but nothing is cutting it.

    Consider ...
    set base_Path to "/private/var/tmp/" -- path to 'tmp' folder.
    set base_Folder to "fcgi_ipc" -- Desired base folder.
    set sub_Folder to "dynamic" -- Sub-folder of base folder.
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir " & base_Path & base_Folder) -- Create base folder.
    end try
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir " & base_Path & base_Folder & "/" & sub_Folder) -- Create sub-folder.
    end try
    ... Naturally, you can hard code it, as well ...
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir /private/var/tmp/fcgi_ipc/") -- Create base folder.
    end try
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir /private/var/tmp/fcgi_ipc/dynamic/") -- Create sub-folder.
    end try
    ... or ...
    do shell script ("mkdir -p /private/var/tmp/fcgi_ipc/dynamic/") -- Create all folders at once.

  • How can i get also the files in the root directory and how can i for testing add items of IEnumerable FTPListDetail to List string ?

    What i get is only the directories and files that in other nodes. But i have also files on the root directory and i never
    get them. This is a screenshot of my program after i got the content of my ftp. I'm using treeView to display my ftp content:
    You can see two directories from the root but no files on the root it self. And in my ftp server host i have files in the root direcory.
    This is the method i'm using to get the directory listing:
    public IEnumerable<FTPListDetail> GetDirectoryListing(string rootUri)
    var CurrentRemoteDirectory = rootUri;
    var result = new StringBuilder();
    var request = GetWebRequest(WebRequestMethods.Ftp.ListDirectoryDetails, CurrentRemoteDirectory);
    using (var response = request.GetResponse())
    using (var reader = new StreamReader(response.GetResponseStream()))
    string line = reader.ReadLine();
    while (line != null)
    result.Append(line);
    result.Append("\n");
    line = reader.ReadLine();
    if (string.IsNullOrEmpty(result.ToString()))
    return new List<FTPListDetail>();
    result.Remove(result.ToString().LastIndexOf("\n"), 1);
    var results = result.ToString().Split('\n');
    string regex =
    @"^" + //# Start of line
    @"(?<dir>[\-ld])" + //# File size
    @"(?<permission>[\-rwx]{9})" + //# Whitespace \n
    @"\s+" + //# Whitespace \n
    @"(?<filecode>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<owner>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<group>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<size>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<month>\w{3})" + //# Month (3 letters) \n
    @"\s+" + //# Whitespace \n
    @"(?<day>\d{1,2})" + //# Day (1 or 2 digits) \n
    @"\s+" + //# Whitespace \n
    @"(?<timeyear>[\d:]{4,5})" + //# Time or year \n
    @"\s+" + //# Whitespace \n
    @"(?<filename>(.*))" + //# Filename \n
    @"$"; //# End of line
    var myresult = new List<FTPListDetail>();
    foreach (var parsed in results)
    var split = new Regex(regex)
    .Match(parsed);
    var dir = split.Groups["dir"].ToString();
    var permission = split.Groups["permission"].ToString();
    var filecode = split.Groups["filecode"].ToString();
    var owner = split.Groups["owner"].ToString();
    var group = split.Groups["group"].ToString();
    var filename = split.Groups["filename"].ToString();
    var size = split.Groups["size"].Length;
    myresult.Add(new FTPListDetail()
    Dir = dir,
    Filecode = filecode,
    Group = group,
    FullPath = CurrentRemoteDirectory + "/" + filename,
    Name = filename,
    Owner = owner,
    Permission = permission,
    return myresult;
    And then this method to loop over and listing :
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file" ;
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    Then updating the treeView:
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And inside a backgroundworker do work how i'm using it:
    var root = Convert.ToString(e.Argument);
    var dirNode = CreateDirectoryNode(root, "root", 1);
    e.Result = dirNode;
    And last the FTPListDetail class:
    public class FTPListDetail
    public bool IsDirectory
    get
    return !string.IsNullOrWhiteSpace(Dir) && Dir.ToLower().Equals("d");
    internal string Dir { get; set; }
    public string Permission { get; set; }
    public string Filecode { get; set; }
    public string Owner { get; set; }
    public string Group { get; set; }
    public string Name { get; set; }
    public string FullPath { get; set; }
    Now the main problem is that when i list the files and directories and display them in the treeView it dosen't get/display
    the files in the root directory. Only in the sub nodes.
    I will see the files inside hello and stats but i need also to see the files in the root directory.
    1. How can i get and list/display the files of the root directory ?
    2. For the test i tried to add to a List<string> the items in var files to see if i get the root files at all.
       This is what i tried in the CreateDirectoryNode before it i added:
    private List<string> testfiles = new List<string>();
    Then after var files i did:
    testfiles.Add(files.ToList()
    But this is wrong. I just wanted to see in testfiles what items i'm getting in var files in the end of the process.
    Both var files and directoryListing are IEnumerable<FTPListDetail> type.
    The most important is to make the number 1 i mentioned and then to do number 2.

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

  • I want to Pick the Single file from The source Directory

    Hi,
       My Scenario is File to RFC .. I'm getting the files in the source Directory.. File names  are  SENDER_(TIMESTAP).XML .. but the problem is... When ever  Files  are available in the Source Directory  Immediately  XI was picking  all the files at a time.. But I want to   to Pick a single file at a time..
    for Making  this what we have to do..   After Processing the first file then only my Sender adapter should pick the next file...  (even though Multiple files are available in my Source Directory)
    Regards
    Jain

    Hi,
    the other option was use Adapter specific attributes in the Sender Communication channel..
    or
    while droping the files ask them to drop using time stamp in another directory  and an external validation is required .. and after validation push single file to Source directory using batch file..
    i.e use a batch file using run time operating system or make that batch file to run at OS level ..
    where the batch files needs to validate the time interval of the file and needs to push a single file to the source directory.. where from there we can directly pick a single file and process..
    regards,
    Kishore

  • I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

    I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial.  It asks for the serial number and says that my trial has expired.  It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product".  It thinks that I still have the expired Trial Version installed.  How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????

    Let me know how it goes. Go into your Adobe account and register your serial number asap.
    https://www.adobe.com/account/my-products-services.html
    That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
    There are too may sad stories here, where people forgot and the box is buried or lost.
    Gene

  • Periodic Message: You have some checked-out files in the working directory

    Hi,
    we are recieving a periodic message (appearing every 5 minutes) saying:
    "You have some checked-out files in the working directory. We recommend that you check in the files after editing. Click here to checkin the files.
    After clicking on the message easyDMS is opened and Private- & Public-Folder are shown.
    There are no checked out files on the client.
    What happened?
    Thanks a lot!
    Edited by: B Lobascio on Feb 8, 2011 5:13 PM

    After changing the Working directory in easyDMS preferences the message did not apear anymore.
    That means that there have been some some damaged documents in origin working directory.
    Edited by: B Lobascio on Feb 16, 2011 10:35 AM

  • SCCM 2012 CU3 / WSUS - Update files are being deleted

    We have been running this configuration since April of last year and haven't had any problems. 
    The problem is a majority of the window/security updates files in the WSUSContent folder are missing.  I have ran wsusutil /reset and it takes a day or so but it will successfully download the 80GB of missing files.  But after a few days they are
    once again missing.  We do run our EPP updates through WSUS and we have no problems with those.
    I have searched endlessly through the log files, I can see where it goes through and skips them due to being superseded. 
    Do not see any database or communication issues between SCCM and WSUS, per the wsyncmgr.log it sees the thousands of that are available from our WSUS server. 
    So, any suggestions as to what might be causing the update files to be deleted from the WSUSContent folder?
    We are running this on:
    Server 2012 / SCCM 2012 CU3 / WSUS for 2012

    So, just to make sure I understand.  Is that we should be deploying updates from the SCCM Configmgr? 
    If you want to use the integrate experience, then yes.
    but the problem is that a majority of updates are showing Downloaded = No when looking under All Software Updates
    You need to either manually initiate the download of updates or set up an Automatic Deployment Rule (ADR). Either will cause ConfigMgr to download the updates placing them into an update package (which in turn gets placed on a DP where the clients can access
    and download the updates).
    wsynclog shows the sync of the update catalog, i.e., the metadata, and not the actual update binaries.
    Jason | http://blog.configmgrftw.com

  • I am trying to delete pages from a PDF file. I opened the bookmarks, selected the pages to delete and choose Edit Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    I am trying to delete pages from a PDF file. I opened the bookmarks in the PDF file, selected the pages to delete and choose Edit > Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    Resolved

  • HT201299 My Iphone 4s wont remember the disable cellular data for certain apps as I soon as I switch on the 3g and go back to home and come back again to Cellular the all apps are being enabled..Please help

    My Iphone 4s wont remember the disable cellular data for certain apps as I soon as I switch on the 3g and go back to home and come back again to Cellular the all apps are being enabled..Please help

    First, try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied.

    Hi Everyone,
    Whenever I install some new software in my new laptop I get this error:-
    Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied.
    I have tried synchronizing the clocks but it doesn't remove the problem.
    These softwares work on another laptop that i have, which also runs windows 7.
    Can someone please tell me the solution as this is extremely urgent.
    Thanks In Advance.
    -Michael

    In short:
    ============
    My permissions were all fine, so if anyone has trouble resolving the issue after sorting permissions then make sure you try fully disabling your anti-virus / anti-spyware / firewall applications, because that was the cause for me.
    In detail:
    ============
    Problem:
    Failed to install this application
    - http://www.ssware.com/cryptoobfuscator/download.htm
    - on Windows 8.1 x64
    - Get error message "Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied."
    First Candidate Solution
    The issue turns out to NOT be security rights on the Temp folder
    ESET Smart Security HIPS Advanced Memory Scanner is the cause
    http://kb.eset.com/esetkb/index?page=content&id=SOLN2908&actp=search&viewlocale=en_US&searchid=1392804914417
    Instead, I went and turned off all the ESS protections one by one and it turned out to be HIPS that is causing this false positive.
    In fact, it is the Advanced Memory Scanner option under HIPS that is causing the error, while the application in question is legit (using Inno Setup and presumably trying to write to the user temp folder, not sure whether just logs or to execute from there)
    Furthermore, Smart Security logs have no entries under HIPS even though I ticked "Log all blocked operations" under the HIPS "Advanced setup" - it was quite a journey to find out the cause :)
    Thank you. I have the same OS and installed ESET Smart Security as well. And it is resolved now.
    I just want to add, that by "Temporarily disable protection" and "Temporarily disable firewall", it doesn't work. You have to disable HIPS, as KristjanL said. 

  • When I want to randomly play (shuffle) all my songs, it seems that the same songs are being played. I've got over 13,000 songs loaded - it seems to me that I shouldn't be getting any repeats.

    When I want to randomly play (shuffle) all my songs, it seems that the same songs are being played. I've got over 13,000 songs loaded - it seems to me that I shouldn't be getting any repeats. I unrated all the songs, thinking this might affect how often a song gets picked to play. Any suggestions? Thanks!

    When I want to randomly play (shuffle) all my songs, it seems that the same songs are being played. I've got over 13,000 songs loaded - it seems to me that I shouldn't be getting any repeats. I unrated all the songs, thinking this might affect how often a song gets picked to play. Any suggestions? Thanks!

Maybe you are looking for

  • Printing from a  Macbook Air

    Hello, Prepare for an amazingly stupid question....... I have one of the new version Macbook Air's 13 inch version.  I also got the 'free' HP printer that came with it whenIi purchased it. I have now finally unpacked the printer, and downloaded the d

  • Why, with the same number of photos in both places, do I still have 25 GB of storage on my iPad and have to BUY more space in iCloud?

    Why, with the same number of photos on my iPad and supposedly in iCloud, do I still have over 25 GB of space on my iPad but now need to buy even more storage space in iCloud? My iPad is 64 GB and I am now paying for 20 GB of iCloud storage with 864 M

  • Syncing Issues - playlists on Itouch getting erased

    I am still trying to get the hang of syncing. Sometimes I do it right and nothing that is already on my Itouch gets altered. However, lately, whenever I sync, my On-the-Go and Genius playlists get erased. It's weird because none of the other playlist

  • Install CS5 with existing serial number using CS6 link in adobe

    I purchased a student version of CS5 so downloaded a trial and which I activated iwth my serial number. I need to reinstall it on my computer, but all the adobe links have changed the trial version to CS6. If I install CS6 trial, then activate with m

  • Installing Flash on Mozilla FireFox.....

    Line: 1 Char: 10447 Error: ActionLaunchAdoe is undefinded Code:0 url: http://127.0.0.1:4053/app/_js/adobe.js                 Do you want to continue running scripts on this page? This is the error I recieve in Mozilla Firefox, once I download the Fla