DW:101 Question - Site folder and file naming - best practices

OK - My 1st post! I’m new to DW and fairly new to developing websites (have done a couple in FrontPage and a couple in SiteGrinder), Although not new at all to technical concepts building PCs, figuring out etc.
For websites, I know I have a lot to learn and I'll do my best to look for answers, RTFM and all that before I post. I even purchased a few months of access to lynda.com for technical reference.
So no more introduction. I did some research (and I kind of already knew) that for file names and folder names: no spaces, just dashes or underscores, don’t start with a number, keep the names short, so special characters.
I’ve noticed in some of the example sites in the training I’m looking at that some folders start with an underscore and some don’t. And some start with a capital letter and some don’t.
So the question is - what is the best practice for naming files – and especially folders. And that’s the best way to organize the files in the folders? For example, all the .css files in a folder called ‘css’ or ‘_css’.
While I’m asking, are there any other things along the lines of just starting out I should be looking at? (If this is way to general a question, I understand).
Thanks…
\Dave
www.beacondigitalvideo.com
By the way I built this site from a template – (modified quite a bit) in 2004 with FrontPage. I know it needs a re-design but I have to say, we get about 80% of our video conversion business from this site.

So the question is - what is the best practice for naming files – and especially folders. And that’s the best way to organize the files in the folders? For example, all the .css files in a folder called ‘css’ or ‘_css’.
For me, best practice is always the nomenclature and structure that makes most sense to you, your way of thinking and your workflow.
Logical and hierarchical always helps me.
Beyond that:
Some seem to use _css rather than css because (I guess) those file/folder names rise to the top in an alphabetical sort. Or perhaos they're used to that from a programming environment.
Some use CamelCase, some use all lowercase or special_characters to separate words.
Some work with CMSes or in team environments which have agreed schemes.

Similar Messages

  • File naming best practice

    Hello
    We are building a CMS system that uses BDB XML to store the individual xhtml pages, editorial content, config files etc. A container may contain tens of thousands of relatively small (<20 Kb) files.
    We're trying to weigh up the benefit on meaningful document names such as "about-us.xml" or "my-profile.xml" versus integer/long file names such as 4382, 5693 without the .xml suffix to make filename indexing as efficient as possible.
    In both situations the document remain unique: appending '_1', '_2' etc where necessary to the former and always incrementing by 1 the latter.
    There is a 'lookup' document that describes the hierarchy and relationships of these files (rather like a site map) so the name of the required document will be known in advance (as a reference in the lookup doc) so we believe that we shouldn't need to index the file names. XQuery will run several lookups but only based upon the internal structure/content of the documents, not on the document names themeselves.
    So is there any compelling reason not to use meaningful names in the container, even if there are > 50,000 documents?
    Thanks, David

    George,
    I was interested in finding out whether document names made of integers would be much more efficient - albeit less intuitive - in the name index than something like 'project_12345.xml'.
    We may need to return all documents of type 'project' so putting the word in the document name seemed like a good idea, but on reflection perhaps we're better off putting that info in the metadata, indexing that and leave the document name as a simple integer/long such as '12345'.
    If so, is it worth rolling out my own inetger-based counter to uniquely name documents or am I better off just using the in-built method setGenerateName()? Is there likely to be much of a performance difference?
    Regards, David

  • How do I specify folder and file options for memory cards in LR4?

    Hello!
    I have read the sections Set import and file-handling preferences and Specify Auto Import settings in the manual. But they don't seem to answer my question. The other stuff that's written about importing files in Lightroom seem to only cover the import of photos to the Lightroom catalog, which is not my primary concern, although I do want them imported to the catalog as well. But before the photos can go to the Lightroom catalog they need to be improted, in other words copied over from the memory card to the local disk drive. Simply put, all I want is for Lightroom to take over the responsibility from Canon EOS Utility and behave the same way when importing/copying files to the local disk drive. How do I set up Lightroom to do just that?
    I just want this type of folder and file structure:
    J:\2010_08_02\IMG_0037.JPG
    J:\2010_08_02\IMG_0039.JPG
    J:\2010_08_22\IMG_0372.CR2
    J:\2010_08_22\IMG_0372.JPG
    J:\2010_11_29\IMG_1405.CR2
    J:\2010_11_29\IMG_1405.JPG
    J:\2011_06_17\IMG_2887.CR2
    J:\2011_06_17\IMG_2887.JPG
    ... etc!
    1. First things first, where the heck do I specify the destination folder for new photos?
    There is an option titled Show import dialog when a memory card is detected under the General tab in Preferences, but there is no folder destination option associated with this.
    2. How do I tell Lightroom to leave original file names as they are (i.e. IMG_2887.CR2) and place them in a new sub-folder (i.e. 2011_06_17) of the destination folder (J:\) named after the capture date of the photo (July 17, 2011)?
    There are a few options under the File Handling tab in the Preferences, but they don't seem to concern the importation of files to the local disk drive.
    3. This maybe should have been the first question really; is Lightroom capable of importing files from the camera or a card reader to the local disk drive at all?
    I sure would expect it to be able to do that, but from the looks of it I am not too confident about that.
    For starters I would like it to just copy my photo files, either directly from camera or from a card reader to a destination folder of my choice, in the same fashion that Canon EOS Utility does it. I don't wat to just import the files to the Lightroom catalog and start working with the files directly from camera or memory card. Hell no! It's not an external disk drive for God's sake!
    Please advise!

    I'm not sure how it is now, but there used to be a dedicated "photo downloader" in Adobe Photoshop Elements at least up to version 6. Is this still part of Photoshop Elements? Or is it just available in Adobe Bridge? I don't remember though if it only imported files to the local disk drive or if it also added them to the library/catalog.
    I've tested Downloader Pro and Lightroom 4 now for importing the photos to local disk drive. I also tested one application called Cam2PC Image Downloader.
    The latter is actually called Cam2PC Image Browser and as its name suggests it's a software for browsing and doing basic changes to the photos, an image organizer. But it has a dedicated downlaoder called Cam2PC Image Downloader that can be very useful for importing photos. It comes either as a payed version or a freeware version.
    I also tested one called Smart Photo Import. This one could be a good alternative to Downloader Pro, but I think it still needs many improvements, and it lacks a lot of the functionality of Downloader Pro. But to be fair, this does cost half as much as Downloader Pro (13 EUR or 17 USD compared to 30 USD).
    I am most impressed by Downloader Pro. It has everything I could ask for really. But I was most impressed by its speed. I've done a simple speed test to see which one is faster and here are the results.
    Downloader Pro
    324 files (162 JPG & 162 CR2)
    Max speed: 21,25 MB/s
    Time: 02:58.6
    Lightroom 4
    Set to render "Standard" previews
    324 files (162 JPG & 162 CR2)
    Max speed: N/A
    Time: 03:41.7
    Compared to Downloader Pro: 78% done at 02:58.6
    Rendering time: 04:35.5
    Total: 08:16.12
    Cam2PC Image Downloader
    324 files (162 JPG & 162 CR2)
    Max speed: N/A
    Time: 03:30.6
    The max speed is the maximum transfer speed that ever occured during the transfer, and this is not something that the application is showing on it's own, it's the highest speed that I have seen with my own eyes. Unfortunately the other applications had no way of showing the speed, only Downloader Pro could show the speed. That's why it says N/A (as in not available).
    As you can see Downloader Pro did the same job in shortest amount of time. Note that I could be transfering 2 or 3 cards worth of photos for the time it takes Lightroom to transfer just one.
    The memory card was full when I started the test. It was a 4 GB Sandisk Ultra 30 MB/s card. The card reader was a Lexar USB 3.0 Professional. Although it was connected to a USB 2.0 port on Intel chipset motherboard (Intel X38, ICH9R). The destination folder was set to Desktop\(name of the application) on a Seagate 500 GB SATA (ST3500320AS) disk. All done on a Windows Vista PC with SP2.
    One way to make Lightroom do this job more quickly is to choose "minimum" as previews rendering option. This way it doesn't spend as much time rendering the photos after being copied to the disk drive. Now, I have not tested this but I believe that Lightroom can start a second import of a second memory card whilst the first one is being copied. I'm not sure how it would affect the speed though, and you would need two card readers for this.
    I wish I could skip rendering previews alltogether. I like to leave adding photos to the catalog and rendering previews for the last step. This is because it takes so long time and I like to use 1:1 previews, so I like leaving Lightroom to do this job in the morning or over the night.
    I have learned to use prests now in the import dialog of Lightroom. So now it should not be a problem if I always want to copy new photos to the same location. If this location is changed I can recall it simply by choosing my preset. This is very handy.
    All in all, Lightroom is very good at importing photos from camera or from a memory card reader to the local disk drive. But it's now my preferred way of importing photos to the computer. Which is why I have decided to purchase Downloader Pro. Thanks all for your help. I appreciate it!

  • What is this folder and files doing in my Temporary folder? Is it a trojan or similar data miner?

    Hi,
    I have located this folder and files in my C:Temp Directory(Normally C:Windows/temp).
    CompatTelemetryLogs with
    AppAndDeviceInventory.log right next to it.
    and the following inside the folder.
    Folder = "IMG" lots of little image files of all my software
    Folder = "Resources" with nothing in it.
    Files:
    CompatData_2014_10_17_06_04_14_1_008001ff.xml
    compatscancache.dat
    DeviceGroupingRules.xml
    diagerr.xml
    diagwrn.xml
    PreliminaryReport.xml
    setupact.log
    setuperr.log
    TelemetryTransform.xsl
    WICA_Devices_SOL.xml
    WICA_Programs_SOL.xml
    WICA_QueryAppBlock_SOL.xml
    WICA_QueryBiosBlock_SOL.xml
    WICA_QueryDeviceBlock_SOL.xml
    WICA_System_SOL.xml
    WICA_SystemReport_SOL.xml
    WICA_TelemetryReport_SOL.xml
    WicaDeviceFilters.xml
    Windows_TelemetryData.xml
    Not sure about all of these but I did a search for this one: "TelemetryTransform.xsl" and one entry was this below(except I do not have any office program installed form MS, I use Open Office) http://technet.microsoft.com/en-us/library/jj219431%28v=office.15%29.aspx
    And this one: "Windows_TelemetryData.xml"
    https://www.google.com/search?num=100&safe=off&hl=en&site=webhp&source=hp&q=Windows_TelemetryData.xml&oq=Windows_TelemetryData.xml&gs_l=hp.12...6809.28780.4.29973.3.3.0.0.0.0.82.216.3.3.0.ccynfh...0...1.1.56.hp..14.0.0.0.KGgYvIjDHXA
    I am not attempting to install windows 8? at all so why this is coming up is beyond me I am using Win7 64 Pro and am quite happy with that version.
    Is all of this just some attempt at someone to install windows 8 on my system through the comcast internet system?
    I also have now searched for the file that was next to the folder: "AppAndDeviceInventory.log" and got this:
    http://www.exclusive-networks.be/Vendors/mobileiron/
    It looks like someone is or has installed an application to make my windows send data over the internet or network. Making my entire windows system hosed with this. Or has someone any idea of how to get rid of it?
    Thanks ahead!

    Hi,
    These files are just some temporary file created by using the system. You could delete them manually via disk cleanup:
    Delete files using Disk Cleanup
    http://windows.microsoft.com/en-us/windows/delete-files-using-disk-cleanup#delete-files-using-disk-cleanup=windows-7
    Karen Hu
    TechNet Community Support

  • Where within CS6 Photoshop will I find the folder and file to clear the scratch disk on my harddrive ???

    Where is the folder (and file) to erase the scratch disk ...

    There is no such folder.
    The scratch file gets erased as soon as you close the file that was using it.
    The rule of thumb I follow to figure out scratch space says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the scratch file exceed 800 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I also have 16 GB of RAM installed.
    Additionally, if you only have a single HD, i.e. your boot drive, you'd need it to be large enough to accommodate both the swap files of the OS as well as Photoshop's scratch.

  • How to loop folder , sub folder and files in the sql server ?

    Hi,
    I have a folder , sub folder and files like this.
    Here AuditSearchHistory fixed folder and contains 2 subfolders , but some times it may contain more sub folders also.
    Please help me to loop the subfolders to get xls files in the sql without SSIS , Because I need to get just xls file paths.
    Thank you.

    Please run these Macros in Excel.
    Sub TestListFilesInFolder()
    ' Open folder selection
    ' Open folder selection
    With Application.FileDialog(msoFileDialogFolderPicker)
    .Title = "Select a Folder"
    .AllowMultiSelect = False
    If .Show <> -1 Then GoTo NextCode
    pPath = .SelectedItems(1)
    If Right(pPath, 1) <> "\" Then
    pPath = pPath & "\"
    End If
    End With
    NextCode: 'MsgBox "No files Selected!!"
    'Application.WindowState = xlMinimized
    'Application.ScreenUpdating = False
    Workbooks.Add ' create a new workbook for the file list
    ' add headers
    ActiveSheet.Name = "ListOfFiles"
    With Range("A2")
    .Formula = "Folder contents:"
    .Font.Bold = True
    .Font.Size = 12
    End With
    Range("A3").Formula = "File Name:"
    Range("B3").Formula = "File Size:"
    Range("C3").Formula = "File Type:"
    Range("D3").Formula = "Date Created:"
    Range("E3").Formula = "Date Last Accessed:"
    Range("F3").Formula = "Date Last Modified:"
    Range("A3:F3").Font.Bold = True
    Worksheets("ListOfFiles").Range("A1").Value = pPath
    Range("A1").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    Selection.Font.Bold = True
    ListFilesInFolder Worksheets("ListOfFiles").Range("A1").Value, True
    ' list all files included subfolders
    Range("A3").Select
    Lastrow = Range("A1048576").End(xlUp).Row
    Range(Selection, Selection.End(xlToRight)).Select
    Range(Selection, Selection.End(xlDown)).Select
    ActiveWorkbook.Worksheets("ListOfFiles").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("ListOfFiles").Sort.SortFields.Add Key:=Range( _
    "B4:B" & Lastrow), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
    xlSortNormal
    With ActiveWorkbook.Worksheets("ListOfFiles").Sort
    .SetRange Range("A3:F" & Lastrow)
    .Header = xlYes
    .MatchCase = False
    .Orientation = xlTopToBottom
    .SortMethod = xlPinYin
    .Apply
    End With
    Range("A1").Select
    Cells.Select
    Cells.EntireColumn.AutoFit
    Columns("A:A").Select
    Selection.ColumnWidth = 100
    Range("A1").Select
    End Sub
    Sub ListFilesInFolder(SourceFolderName As String, IncludeSubfolders As Boolean)
    ' lists information about the files in SourceFolder
    Dim FSO As Scripting.FileSystemObject
    Dim SourceFolder As Scripting.Folder, SubFolder As Scripting.Folder
    Dim FileItem As Scripting.File
    Dim r As Long
    Set FSO = New Scripting.FileSystemObject
    Set SourceFolder = FSO.GetFolder(SourceFolderName)
    r = Range("A1048576").End(xlUp).Row + 1
    For Each FileItem In SourceFolder.Files
    ' display file properties
    Cells(r, 1).Formula = FileItem.Path & FileItem.Name
    Cells(r, 2).Formula = (FileItem.Size / 1048576)
    Cells(r, 2).Value = Format(Cells(r, 2).Value, "##.##") & " MB"
    Cells(r, 3).Formula = FileItem.Type
    Cells(r, 4).Formula = FileItem.DateCreated
    Cells(r, 5).Formula = FileItem.DateLastAccessed
    Cells(r, 6).Formula = FileItem.DateLastModified
    ' use file methods (not proper in this example)
    r = r + 1 ' next row number
    Next FileItem
    If IncludeSubfolders Then
    For Each SubFolder In SourceFolder.SubFolders
    ListFilesInFolder SubFolder.Path, True
    Next SubFolder
    End If
    Columns("A:F").AutoFit
    Set FileItem = Nothing
    Set SourceFolder = Nothing
    Set FSO = Nothing
    ActiveWorkbook.Saved = True
    End Sub
    Or . . .
    Option Explicit
    Sub CreateList()
    Application.ScreenUpdating = False
    Workbooks.Add ' create a new workbook for the folder list
    ' add headers
    ActiveSheet.Name = "ListOfFiles"
    With Cells(3, 1)
    .Value = "Folder contents:"
    .Font.Bold = True
    .Font.Size = 12
    End With
    Cells(4, 1).Value = "Folder Path:"
    Cells(4, 2).Value = "Folder Name:"
    Cells(4, 3).Value = "Folder Size:"
    Cells(4, 4).Value = "# Subfolders:"
    Cells(4, 5).Value = "# Files:"
    Range("A3:E3").Font.Bold = True
    ListFolders BrowseFolder, True
    Application.ScreenUpdating = True
    Cells.Select
    Cells.EntireColumn.AutoFit
    Columns("A:A").Select
    Selection.ColumnWidth = 100
    Columns("B:B").Select
    Selection.ColumnWidth = 25
    Range("A1").Select
    End Sub
    Sub ListFolders(SourceFolderName As String, IncludeSubfolders As Boolean)
    ' lists information about the folders in SourceFolder
    Dim FSO As Scripting.FileSystemObject
    Dim SourceFolder As Scripting.Folder, SubFolder As Scripting.Folder
    Dim r As Long
    Set FSO = New Scripting.FileSystemObject
    Set SourceFolder = FSO.GetFolder(SourceFolderName)
    ' display folder properties
    Worksheets("ListOfFiles").Range("A1").Value = SourceFolderName
    Range("A1").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    Selection.Font.Bold = True
    r = Cells(Rows.Count, 1).End(xlUp).Row + 1
    Cells(r, 1).Value = SourceFolder.Path
    Cells(r, 2).Value = SourceFolder.Name
    Cells(r, 3).Value = SourceFolder.Size
    Cells(r, 3).Value = (SourceFolder.Size / 1048576)
    Cells(r, 3).Value = Format(Cells(r, 3).Value, "##.##") & " MB"
    Cells(r, 4).Value = SourceFolder.SubFolders.Count
    Cells(r, 5).Value = SourceFolder.Files.Count
    If IncludeSubfolders Then
    For Each SubFolder In SourceFolder.SubFolders
    ListFolders SubFolder.Path, True
    Next SubFolder
    Set SubFolder = Nothing
    End If
    Columns("A:E").AutoFit
    Set SourceFolder = Nothing
    Set FSO = Nothing
    ActiveWorkbook.Saved = True
    End Sub
    Or . . .
    Const BIF_RETURNONLYFSDIRS As Long = &H1 ''' For finding a folder to start document searching
    Const BIF_DONTGOBELOWDOMAIN As Long = &H2 ''' Does not include network folders below the domain level in the tree view control
    Const BIF_RETURNFSANCESTORS As Long = &H8 ''' Returns only file system ancestors.
    Const BIF_BROWSEFORCOMPUTER As Long = &H1000 ''' Returns only computers.
    Const BIF_BROWSEFORPRINTER As Long = &H2000 ''' Returns only printers.
    Const BIF_BROWSEINCLUDEFILES As Long = &H4000 ''' Returns everything.
    Const MAX_PATH As Long = 260
    Type BROWSEINFO
    hOwner As Long
    pidlRoot As Long
    pszDisplayName As String
    lpszINSTRUCTIONS As String
    ulFlags As Long
    lpfn As Long
    lParam As Long
    iImage As Long
    End Type
    Declare Function SHGetPathFromIDListA Lib "shell32.dll" (ByVal pidl As Long, ByVal pszBuffer As String) As Long
    Declare Function SHBrowseForFolderA Lib "shell32.dll" (lpBrowseInfo As BROWSEINFO) As Long
    Function BrowseFolder() As String
    Const szINSTRUCTIONS As String = "Choose the folder to use for this operation." & vbNullChar
    Dim uBrowseInfo As BROWSEINFO
    Dim szBuffer As String
    Dim lID As Long
    Dim lRet As Long
    With uBrowseInfo
    .hOwner = 0
    .pidlRoot = 0
    .pszDisplayName = String$(MAX_PATH, vbNullChar)
    .lpszINSTRUCTIONS = szINSTRUCTIONS
    .ulFlags = BIF_RETURNONLYFSDIRS
    .lpfn = 0
    End With
    szBuffer = String$(MAX_PATH, vbNullChar)
    ''' Show the browse dialog.
    lID = SHBrowseForFolderA(uBrowseInfo)
    If lID Then
    ''' Retrieve the path string.
    lRet = SHGetPathFromIDListA(lID, szBuffer)
    If lRet Then BrowseFolder = Left$(szBuffer, InStr(szBuffer, vbNullChar) - 1)
    End If
    BrowseFolder = BrowseFolder & "\"
    End Function
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Flashing Question mark Folder and clicking - no start up.

    Dear Mac Users,
    I've already got some info on the above, but my 3.5year old G5 iMac wont get past the flashing question mark folder icon. It can't find the start-up drive. The think the hard drive is dead - if I start up from external HD it's OK and/or Tiger CD - but the mac's HD is nowhere to be seen on any disk utility.
    Just bought Disk Warrior - that wont see the iMac HDrive either - so unless anyone has got a fix, it looks like the thing will be dumped or I get a new HD. Are these easy to buy and fit? It's a Rev A model, (the buzzy first edition). I haven't got all my files backed up, just the key ones, which are now on a new alum iMac. Or I could run it off an external drive (noisy, though).
    I had been moving the G5 around a lot (switched off) before it went belly up - could this be a cause?
    Maybe it'd been feeling left out, with the new 24in installed.
    Hope someone can shed further light.
    Rob
    (PS - anyone want buy my Disk Warrior?)

    Your drive is dead, you can look in [macsales.com] or [smalldog.com] for a new new one. The drive isn't too difficult to replace, you can do it yourself, and do get the largest one you can afford, just make sure it's a 3.5" SATA.
    Keep your DiskWarrior, you never know when it'll come in handy.

  • Cant get list of files from a folder (even though the folder and files are created with the same app)

    Ok so each character rolled with my app gets saved as an html file in a folder i create on the sdcard called RpgApp
    the code to do this is 
    private async Task saveToHtmlCharacter(string name)
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    StorageFolder sdcard = (await externalDevices.GetFoldersAsync()).FirstOrDefault(); //Windows.Storage.ApplicationData.Current.LocalFolder;
    var dataFolder = await sdcard.CreateFolderAsync("RpgApp",
    CreationCollisionOption.OpenIfExists);
    var file = await dataFolder.CreateFileAsync(name+".html",
    CreationCollisionOption.ReplaceExisting);
    using (StreamWriter writer = new StreamWriter(await file.OpenStreamForWriteAsync()))
    writer.WriteLine("<html><head><title>Character File for " + z.charNameFirst + " " + z.charNameSecond + "</title></head><body>");
    //trimed for the post
    now this as i say works perfectly and i can confirm that the files show up in the "RpgApp"folder
    now the next step is to have the app read the names of each of those html files and create a seperate button for each one named for the filename and with the filename as content (later i will link them up to load the html file they are named for in a webbrowser
    panal)
    here is the code that *should* do that
    private async Task readFiles()
    z.test.Clear();
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    StorageFolder folder = (await externalDevices.GetFolderAsync("RpgApp"));
    IReadOnlyList<StorageFile> fileList = await folder.GetFilesAsync();
    //z.test.Add("dummy");
    foreach (StorageFile file in fileList)
    z.test.Add(file.Name);
    public async void buttonTest()
    await readFiles();
    CoreDispatcher dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;
    await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
    foreach (string name in z.test)
    Button button1 = new Button();
    button1.Height = 75;
    button1.Content = name;
    button1.Name = name;
    testStackPanal.Children.Add(button1);
    now i say should as what i get is an error of "A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.ni.dll" (2 of them in fact one after another)
    more detailed error is at http://pastebin.com/3hBaZLQ9
    now i went through checking line after line to find the error and line that causes it is:
    StorageFolder folder = (await externalDevices.GetFolderAsync("RpgApp"));
    in the readFiles method
    i checked to make sure the case is right etc and its spot on, that IS the folder name, and remember my app creates that folder and creates the files that are inside that folder (and only files my app creates are in that folder) so it should have access
    im 100% stuck its taken me all day to get the files to save and now i cant get them to list correctly
    I have tested the button creation function with fake list data and that worked fine, as i say the error is when i tell it to look at the folder it created
    all help most greatfully recieved

    this was actually solved for me on another forum thread 
    async Task<bool> continueToReadAllFiles(StorageFolder folder)
    if (folder == null)
    return false;
    if (folder.Name.Equals("RpgApp", StringComparison.CurrentCultureIgnoreCase))
    var files = await folder.GetFilesAsync();
    foreach (var file in files)
    test.Add(file.Name);
    return false;
    var folders = await folder.GetFoldersAsync();
    foreach (var child in folders)
    if (!await continueToReadAllFiles(child))
    return false;
    return true;
    public async void buttonTest()
    test.Clear();
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    var folders = await externalDevices.GetFoldersAsync();
    foreach (var folder in folders)
    if (!await continueToReadAllFiles(folder))
    break;
    //.... commented out
    ...now i say solved this is more a workaround...but it works.
    I would love to know why we cant just scan the RpgApp folder instead of having to scan the whole dc card and disregard all thats not in the RpgApp folder

  • Finder Strange behaviour: folder and file icons not showing, then they disa

    Yesterday I was trying to install the postgresql package from (http://web.mac.com/dru_satori/iWeb/PostgreSQLforMac/Welcome.html). Actually I had an older version of their package, i uninstalled it, tried installing the new package, but kept receiving errors that the installation was not correct.
    Now the point of this question, as I was doing the above, i started to notice that some files (either on my desktop or in a folder window) are not showing the icon. Only the label is showing! when I click on such a file, the file disappear (i mean even the label is gone).
    I have completed permission repairs, disk repairs. I also noticed that this is only happening in my account, but not that of other accounts on this computer, which indicates that this is a problem in my home directory. I have also re-lunched the finder using the force quit window. I have also trashed the com.apple.finder.plist and logged out and then logged in again. I have just noticed that (pages) is asking for the serial number! I have this program installed months ago! It seems that some other files are also getting damaged!
    Is there something that I am missing? Is this a bug? is there any solution, because this is very annoying and it might indicate a bigger problem that I am not aware of.
    thank you for your help
    PowerMac G5 Dual   Mac OS X (10.4.4)   4.5 GB RAM

    I also noticed that this is only happening in my account, but not that of other accounts on this computer, which indicates that this is a problem in my home directory.
    Good first troubleshooting step!
    Now log back into your normal user account: (In your case I would try preferences first)
    1. Navigate to ~(yourhome/library/fonts - drag this folder to the desktop.
    • Restart and test your applications.
    • If they work start adding the fonts back few at a time.
    ( Likely suspects are Times RO & Helvetica Fractions, also if you do not use Classic you can trash the classic fonts.)
    2. Check Preferences Thoroughly;
    • Navigate to ~(yourhome/library/preferences drag this folder to the desktop.
    • Restart and test your applications.
    • If this works, save the old preferences folder somewhere else or on disk, name it "old prefs" .
    ** Note: A very important file is the "com.apple.Mail.plist" preference file located in the Preferences folder which contains all email account settings and general mail preferences (hold this one and replace if your problem is not with Mail).
    You'll have to go through some of your System Preferences and apps to set the preferences back to how you like them. (Or if you have the time and inclination, "cherry pick" through until you find the problem one or two.)
    3. Check Permissions Inside Home Folder
       • Navigate to yourhome/library.
       • Get Info (Command - i) on folders for apps you are having problems with.
       • Open the "Ownership & permissions" disclosure triangle.
       • Make sure you are the owner, with "read and write" access.
    • Click on "apply to all"
       • If this is correct, open the "Applications Support" folder and do the same procedure (Command+I) for the folders with the names of the applications you are having trouble with.
    Note:
    The reason to check this is because repairing permissions with Disk Utility doesn't touch permissions inside your home folder.
    If the issue persists navigate to yourhome/library/caches and drag this folder to the trash, then log out and back or restart. There is no need to replace this folder.
    -mj
    [email protected]

  • Booting problem - first question mark folder and now grey screen

    Hi all,
    I'm having problems with my Macbook booting.
    Yesterday it worked fine until I tried to open an old Excel file, then all became extremely slow, but anyway I was able to shut it down properly, or at least this was what I thought.
    The next time I tried to turn it on, a flashing question mark forder appeared instead of the apple. Then I tried various solutions I've found in forums, like turning on while holding down shift button like in http://support.apple.com/kb/HT1455 (nothing happens), the option botton (the cursor appears, but bootcamp does not start), and command+V for verbose mode (nothing).
    Anyway now if I turn it on nothing appears, neither the question mark folder, just the grey screen.
    I know that everything suggests that my HD is dead, but I don't really see the reason why it should have done so...
    Thank you for your help.
    Giulia

    Hello,
    "*a flashing question mark forder appeared instead of the apple."*
    A flashing question mark can mean several things. One, the hard disk disk is failing. Two, it means that when you boot your MacBook, it can't find a System Folder to boot from.
    Try booting while holding down the Option key. That should prompt the Startup Manager window so you can select your startup disc.
    If that doesn't work... grab your install disk and check the hard drive for errors.
    Insert the installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your start up disk and click Restart
    The fact that you can't boot in Safe Mode (shift key) is not a good sign...
    *"but I don't really see the reason why it should have done so..."*
    How long have you had your MacBook? Do you have AppleCare?
    Carolyn

  • Boots to flashing question mark folder and disc utility cannot locate internal hard drive

    Bottling my MacBook Pro I end up with a flashing question mark folder. I reboot holding the option key to select discs and there were no options at all. I plug in an Ethernet cable and it shows a internet recovery option. I click and it downloaded a temporary recovery mode. From there I open disc utility but it doesn't find any internal hard drives. I reset the pram and I still get the flashing question mark folder. Thinking it was my internal hard drive that failed I bought and replaced the internal hd with a new one and repeated all the processes and still no internal hard drive was found. I'm stuck with the flashing question mark folder. Therefore I've concluded that it was my MacBook pros internal hard drive CABLE that had failed. Does anyone know of any other possible problems that is causing this for my MacBook Pro or know of any solutions? Or is replacing my internal hd cable the only solution? Please help!

    It was the internal HD cable. I replaced it and now my MacBook Pro works

  • How to find the Size of a Folder &also list the sub folder and files in it

    In my program I want to know the size of a folder . The input given is the path of the folder and the ouptut should be the list of files and subfolders with their size. What is the function we have to use for this?
    Thank you

    class: file
    method: listFiles() - list all files of the dir referenced by the file object
    method: length() - give the size of the file referenced by the file object ; you have to call this method on all file of the dir to make the sum and have the dir size

  • ICloud Drive shows 'Encrypted Folder' and 'Encrypted File' instead of correct folder and files names

    On my 2014 MBA (10.10.2), I added a group of folders and files to iCloud Drive in Finder by dragging and dropping.  I do not use disk encryption.  The files are of various types (mostly jpeg/pdf, and a few docx).  I can see the files when I login to iCloud.com, they are not showing as encrypted.  But on my iPad2 8.2 the folders and files show as Encrypted Files and Folders (Settings-iCloud-Storage-Manage Storage-Other Documents (under Documents and Data).  I have tried opening these with "authorized apps" on the iPad2, but the apps don't see these files.  Two questions: 1. Why are these showing as encrypted, i have no idea what is on the iPad2?; and 2. Once I can get an answer to 1., will I be able to open these jpeg and pdf files on the iPad2.  Thanks.

    Sorry we aren't communicating.  This doesn't have anything to do with a program being associated with the file.  No regular app can open an encrypted file.  Here is the final outcome.  For some reason, after 2 days, these files now show up as unencrypted files in iCloud Drive on the iPad.  That is they now match up by name and extension with what I have on the MBA in Finder.  There is no explanation except that iCloud Drive is buggy.

  • Export for the Web and File Naming : Batch problem in Photoshop CC

    Is it possible to use "File Naming" when you are using in a batch "Save for the Web" export ?
    What I want to do:
    I have images that I need to resize, crop and rename (change "filename.jpg" to "filename_850x490.jpg" and make an optimisation for the web
    I want to create an action that I can use in a batch
    What is working :
    I can use my action (resize, crop, save) and use file renaming option if I use "save as" options
    I can use my action (resize, crop, save for the web ...) but the file renaming option are not use at the export,
           So I have to create two actions (one for resize, crop and rename and an other to compress images with "save for the web"
    ==> What's wrong with "File rename" and "save for the web"?
    Thank You for support !
    My Environement :
    Photoshop CC : last update
    OS : Windows 8 Entreprise - 64 bits
    Proc : Intel Xeon CPU E5 3.00 GHz - Ram : 8 GB - GPU : AMD FirePro V5900 (FireGL V)

    Probably a lot easier if you use the Image Processor Pro script
    (part of Dr. Brown’s Services 2.3.1)
    http://www.russellbrown.com/scripts.html

  • Admin, owner of folder cannot modify folder and file in it

    Hi,
    i've created a shared folder on Mac OS X Server.
    I'm the admin of Server.
    I've enabled me and other users to read/write in that shared folder.
    Now a subfolder (and file) created by other users sunder that main shared folder are READ-ONLY to me (and only to me) while all the other local network users can read and WRITE those subfolders/files.
    Why ???
    The odd is that if i click on these items the owner is ... me !!!
    Any hints ?
    Thanks

    Now i see it, thanks.
    It's odd: i see near to all users the disclosure triangle while me (owner) not has any disclosure triangle.
    I've added again my name and now disclosure triangle is avaible and i can setup also me ...
    But now i've 2 me users, one with disclosure triangle and one not ...
    I've also tried to change the me owner (wit no disclosure triangle)  (not in ACL panel) to leave only assigning the shared panel to me (with disclosure triangle) but when modify it all other users disappear ...
    hoping it's clear

Maybe you are looking for

  • IDM 8.1.02 patch - many problems

    We installed IDM patch 8.1.02 to fix Oracle case sensitive ID bug. Basically in 8.1.01 path IDM inserts users as "userid" , enforcing lowercase logons to Oracle. This was the case where case senstive was checked or not in Oracle RAC resource definiti

  • LACP/Load Balancing Question

    This past weekend we replaced our Catalyst 4506 switches with a combination of Catalyst 4500-X switches (provides fiber and 10 GB connections to our closet switches and our UCS) and 2960-X switches (all other servers and printers are connected here).

  • HT4927 What if I can't restore the backup iPhoto library because I get an error message that there's not enough free space?

    After iPhoto crashed, it automatically tried to rebuild and ten repair itself. iPhoto opens and all my albums are there, but no thumbnails. I've tried rebuilding the thumbnails twice, to no avail. So I tried restoring from backup (Time Machine) to th

  • Sytem Generator generated IP simulation mismatch

    Hi, I am using Vivado 2014.2 & SystemGenerator 2014.2 To demonstrate the problem I have made a simple register using System Generator MCode block. Converted that in to an IP to be used in Vivado IP Integrator. I insert my simple register IP, generate

  • Wireless charging issues Lumia 930 and DT-601

    Hi all, So got my Lumia 930 just over a week a go and everything is pretty much fine (other than the differences that need getting used to after two years of using a Iphone), however the one issue i'm having is with the wireless charging plate that c